Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69c854c4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add check for null actions" into rvc-dev am: 4cb4f934 am: 798891f4 am: c23376fd

Change-Id: Id7a18914c29e26dd686e62c708a32e8a62e97a54
parents 9c0a0c39 c23376fd
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -191,6 +191,7 @@ class MediaDataManager @Inject constructor(
        // TODO: b/153736623 look into creating actions when this isn't a media style notification

        val packageContext: Context = sbn.getPackageContext(context)
        if (actions != null) {
            for (action in actions) {
                val mediaAction = MediaAction(
                        action.getIcon().loadDrawable(packageContext),
@@ -198,6 +199,7 @@ class MediaDataManager @Inject constructor(
                        action.title)
                actionIcons.add(mediaAction)
            }
        }

        foregroundExcecutor.execute {
            onMediaDataLoaded(key, MediaData(true, bgColor, app, smallIconDrawable, artist, song,