mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Temporarily suppress missing permission lint in session demo
#minor-release PiperOrigin-RevId: 529370535
This commit is contained in:
parent
09b474a519
commit
0f398d511d
1 changed files with 2 additions and 0 deletions
|
|
@ -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.*
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue