mirror of
https://github.com/gokadzev/Musify.git
synced 2025-05-17 14:36:07 +08:00
refactor: this should fix foreground exception as well
This commit is contained in:
@ -85,7 +85,8 @@
|
||||
<!-- AudioService -->
|
||||
<service android:name="com.ryanheise.audioservice.AudioService"
|
||||
android:foregroundServiceType="mediaPlayback"
|
||||
android:exported="true">
|
||||
android:exported="true"
|
||||
tools:ignore="Instantiatable">
|
||||
<intent-filter>
|
||||
<action android:name="android.media.browse.MediaBrowserService" />
|
||||
</intent-filter>
|
||||
@ -93,7 +94,8 @@
|
||||
|
||||
<!-- MediaButtonReceiver -->
|
||||
<receiver android:name="com.ryanheise.audioservice.MediaButtonReceiver"
|
||||
android:exported="true">
|
||||
android:exported="true"
|
||||
tools:ignore="Instantiatable">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MEDIA_BUTTON" />
|
||||
</intent-filter>
|
||||
|
@ -224,6 +224,7 @@ Future<void> initialisation() async {
|
||||
androidNotificationChannelName: 'Musify',
|
||||
androidNotificationIcon: 'drawable/ic_launcher_foreground',
|
||||
androidShowNotificationBadge: true,
|
||||
androidStopForegroundOnPause: false,
|
||||
),
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user