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

Commit 4cb4f934 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add check for null actions" into rvc-dev

parents 05953192 4580c835
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,