Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
Update ForegroundService.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Live-Block authored Aug 11, 2024
1 parent 0e6d08f commit c24c85c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c24c85c

Please sign in to comment.