Skip to content

Commit 9ccd4f2

Browse files
committed
Fixed potential null on Android
1 parent baf5d41 commit 9ccd4f2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Plugin.Maui.Handlers/EntryHandler/EntryHandler.android.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public static void SetFieldCursorColor(Color cursorColor)
4040
#if ANDROID
4141
if (OperatingSystem.IsAndroidVersionAtLeast(29))
4242
{
43+
if (handler.PlatformView.TextCursorDrawable is null)
44+
return;
45+
4346
handler.PlatformView.TextCursorDrawable.SetTint(cursorColor.ToAndroid());
4447
}
4548
#endif

src/Plugin.Maui.Handlers/Plugin.Maui.Handlers.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<UseMaui>true</UseMaui>
88
<MauiVersion>9.0.30</MauiVersion>
99

10-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
11-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
10+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.5</SupportedOSPlatformVersion>
11+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">25.0</SupportedOSPlatformVersion>
1212

1313
<!-- NuGet -->
1414
<Authors>Victor Hugo Garcia Hernandez</Authors>
@@ -29,7 +29,7 @@
2929
<DebugType>portable</DebugType>
3030
<PackageIcon>icon.png</PackageIcon>
3131
<PackageReadmeFile>README.md</PackageReadmeFile>
32-
<Version>1.0.0</Version>
32+
<Version>1.1.0</Version>
3333
</PropertyGroup>
3434

3535
<!-- iOS & MacCatalyst -->

0 commit comments

Comments
 (0)