diff --git a/app/src/main/java/com/sunshine/freeform/service/ForegroundService.kt b/app/src/main/java/com/sunshine/freeform/service/ForegroundService.kt index 3ecc34f..fdbaeaf 100644 --- a/app/src/main/java/com/sunshine/freeform/service/ForegroundService.kt +++ b/app/src/main/java/com/sunshine/freeform/service/ForegroundService.kt @@ -201,7 +201,7 @@ class ForegroundService : Service(), SharedPreferences.OnSharedPreferenceChangeL val notification = builder.build() notification.flags = Notification.FLAG_ONGOING_EVENT or Notification.FLAG_NO_CLEAR - startForeground(3, notification) + startForeground(3, notification, FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK) return START_STICKY }