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
(cherry picked from commit 0f398d5)
  • Loading branch information
icbaker committed May 15, 2023
1 parent 375cdb2 commit 7a1d7bf
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 @@ -277,6 +278,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 7a1d7bf

Please sign in to comment.