From 5dd3ec5bbc6cdcc1d5e06f9a9050e017815c94ce Mon Sep 17 00:00:00 2001 From: James Crutchley Date: Sun, 21 Jul 2024 18:29:18 -0700 Subject: [PATCH] [BUG FIX] Fix Android APK crash on API Level 21-24 (#2047) --- .../Platforms/Android/AndroidManifest.xml | 2 +- .../Services/MediaControlsService.android.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/CommunityToolkit.Maui.Sample/Platforms/Android/AndroidManifest.xml b/samples/CommunityToolkit.Maui.Sample/Platforms/Android/AndroidManifest.xml index e6c60ce38a..e4c429ce33 100644 --- a/samples/CommunityToolkit.Maui.Sample/Platforms/Android/AndroidManifest.xml +++ b/samples/CommunityToolkit.Maui.Sample/Platforms/Android/AndroidManifest.xml @@ -2,7 +2,7 @@ - diff --git a/src/CommunityToolkit.Maui.MediaElement/Services/MediaControlsService.android.cs b/src/CommunityToolkit.Maui.MediaElement/Services/MediaControlsService.android.cs index 4070449070..629c8bfa72 100644 --- a/src/CommunityToolkit.Maui.MediaElement/Services/MediaControlsService.android.cs +++ b/src/CommunityToolkit.Maui.MediaElement/Services/MediaControlsService.android.cs @@ -17,7 +17,7 @@ namespace CommunityToolkit.Maui.Media.Services; -[Service(Exported = false, Enabled = true, Name = "CommunityToolkit.Maui.Media.Services", ForegroundServiceType = ForegroundService.TypeMediaPlayback)] +[Service(Exported = false, Enabled = true, Name = "communityToolkit.maui.media.services", ForegroundServiceType = ForegroundService.TypeMediaPlayback)] class MediaControlsService : Service { public const string ACTION_PLAY = "MediaAction.play";