[DO NOT MERGE] Use loadDrawableAsUser in MediaDataManager
This fixes a SystemUI loopcrash when casting as a guest user.
Bug: 173026465
Test: Manual - install media app that can cast on guest user only,
then cast from guest user. SystemUI should not crash.
Test: atest com.android.systemui.media
Change-Id: I70f5de89a813c54a616eb701a02aa43272754580
This commit is contained in:
committed by
Beth Thibodeau
parent
02bd168520
commit
36003d29f4
@@ -360,7 +360,8 @@ class MediaDataManager(
|
||||
val app = builder.loadHeaderAppName()
|
||||
|
||||
// App Icon
|
||||
val smallIconDrawable: Drawable = sbn.notification.smallIcon.loadDrawable(context)
|
||||
val smallIconDrawable: Drawable = sbn.notification.smallIcon.loadDrawableAsUser(context,
|
||||
sbn.user.identifier)
|
||||
|
||||
// Song name
|
||||
var song: CharSequence? = metadata.getString(MediaMetadata.METADATA_KEY_DISPLAY_TITLE)
|
||||
|
||||
Reference in New Issue
Block a user