Browse Source

Explicitely set notifications as public.

housekeeping/remove-warnings
Antoine POPINEAU 4 years ago
parent
commit
dfeec64bf1
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
  1. 1
      app/src/main/java/com/github/apognu/otter/playback/MediaControlsManager.kt

1
app/src/main/java/com/github/apognu/otter/playback/MediaControlsManager.kt

@ -61,6 +61,7 @@ class MediaControlsManager(val context: Service, private val mediaSession: Media @@ -61,6 +61,7 @@ class MediaControlsManager(val context: Service, private val mediaSession: Media
AppContext.NOTIFICATION_CHANNEL_MEDIA_CONTROL
)
.setShowWhen(false)
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
.setStyle(
MediaStyle()
.setMediaSession(mediaSession.sessionToken)

Loading…
Cancel
Save