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

Commit 1f419e4d authored by Jeff DeCew's avatar Jeff DeCew Committed by Automerger Merge Worker
Browse files

Fix non-dismissible resumption players. am: 36fc7e46

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12995017

Change-Id: Ib55af681e733383c21512f4712e5ea106a4b797e
parents 72f2a2c5 36fc7e46
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -609,7 +609,8 @@ class MediaDataManager(
            // Move to resume key (aka package name) if that key doesn't already exist.
            val resumeAction = getResumeMediaAction(removed.resumeAction!!)
            val updated = removed.copy(token = null, actions = listOf(resumeAction),
                    actionsToShowInCompact = listOf(0), active = false, resumption = true)
                    actionsToShowInCompact = listOf(0), active = false, resumption = true,
                    isClearable = true)
            val pkg = removed?.packageName
            val migrate = mediaEntries.put(pkg, updated) == null
            // Notify listeners of "new" controls when migrating or removed and update when not