Skip to content

Commit

Permalink
Temporarily suppress missing permission lint in session demo
Browse files Browse the repository at this point in the history
#minor-release

PiperOrigin-RevId: 529370535
  • Loading branch information
icbaker authored and tof-tof committed May 4, 2023
1 parent 09b474a commit 0f398d5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package androidx.media3.demo.session

import android.annotation.SuppressLint
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent.*
Expand Down Expand Up @@ -279,6 +280,7 @@ class PlaybackService : MediaLibraryService() {
* by a media controller to resume playback when the {@link MediaSessionService} is in the
* background.
*/
@SuppressLint("MissingPermission") // TODO: b/280766358 - Request this permission at runtime.
override fun onForegroundServiceStartNotAllowedException() {
val notificationManagerCompat = NotificationManagerCompat.from(this@PlaybackService)
ensureNotificationChannel(notificationManagerCompat)
Expand Down

0 comments on commit 0f398d5

Please sign in to comment.