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

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

Change-Id: I292ed69536d102ff7e9d383140512ea531b9de64
parents e9bfd585 4cb4f934
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,