[Android] Add the foregroundServiceType to the services in the manifest
Nicolas Pomepuy
git at videolan.org
Fri Jan 6 07:12:41 UTC 2023
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jan 3 13:22:35 2023 +0100| [89c2deb5fd4983dd64e0e55bc5ab8e559612c9d9] | committer: Nicolas Pomepuy
Add the foregroundServiceType to the services in the manifest
> https://code.videolan.org/videolan/vlc-android/commit/89c2deb5fd4983dd64e0e55bc5ab8e559612c9d9
---
application/vlc-android/AndroidManifest.xml | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/application/vlc-android/AndroidManifest.xml b/application/vlc-android/AndroidManifest.xml
index 95de6b9eac..4ee108b143 100644
--- a/application/vlc-android/AndroidManifest.xml
+++ b/application/vlc-android/AndroidManifest.xml
@@ -1036,13 +1036,17 @@
</intent-filter>
</activity>
- <service android:name=".PlaybackService"
- android:exported="true">
+ <service
+ android:name=".PlaybackService"
+ android:exported="true"
+ android:foregroundServiceType="mediaPlayback">
<intent-filter>
<action android:name="android.media.browse.MediaBrowserService"/>
</intent-filter>
</service>
- <service android:name=".MediaParsingService"/>
+ <service
+ android:name=".MediaParsingService"
+ android:foregroundServiceType="mediaProjection" />
<receiver
android:name=".widget.VLCAppWidgetProviderWhite"
More information about the Android
mailing list