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

Commit c23376fd 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

Change-Id: I071c2cb6a52ef6bfefb93b8f1ecf2c805c78acf4
parents 5c646cae 798891f4
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,