Skip to content

Commit c25eb90

Browse files
rookiejavamyroot
authored andcommitted
Bump to latest (rc1)
- ImageButtonHandler and Handler Re-usability (dotnet#2352) - Remove IBoxView (dotnet#2619) - Add SupportedOSPlatformVersion (dotnet#2565) - Merge all the .NET 6 projects/solutions (dotnet#2505) - Shadow Support (dotnet#570) - Add IndicatorView handler(dotnet#2038)
1 parent 67f864f commit c25eb90

File tree

2 files changed

+12
-42
lines changed

2 files changed

+12
-42
lines changed

src/Core/src/Handlers/Button/ButtonHandler.Tizen.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,18 @@ public static Task MapImageSourceAsync(IButtonHandler handler, IImageButton imag
5858
return handler.ImageSourceLoader.UpdateImageSourceAsync();
5959
}
6060

61-
//TODO : Need to impl
62-
[MissingMapper]
63-
public static void MapImageSource(ButtonHandler handler, IButton image) { }
61+
public static void MapImageSource(IButtonHandler handler, IButton image) =>
62+
MapImageSourceAsync(handler, image).FireAndForget(handler);
63+
64+
public static Task MapImageSourceAsync(IButtonHandler handler, IButton image)
65+
{
66+
if (image.ImageSource == null)
67+
{
68+
return Task.CompletedTask;
69+
}
70+
71+
return handler.ImageSourceLoader.UpdateImageSourceAsync();
72+
}
6473

6574
[MissingMapper]
6675
public static void MapCharacterSpacing(IButtonHandler handler, ITextStyle button) { }

src/Core/src/ImageSources/Tizen/ImageSourceServiceResult.cs

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)