diff options
| author | 2020-04-15 12:02:43 -0700 | |
|---|---|---|
| committer | 2020-05-08 22:23:31 -0700 | |
| commit | b98e9ac62121b465264499b1632a28137d8779de (patch) | |
| tree | 94e4c61451f8f6d6c5af402522183316ee1a342a | |
| parent | 6eec7f21904b92d33d6b28899197d58067c6c1da (diff) | |
Made sure that we're only updating the media notification when inflated
Previously the update was happening before inflation, but isMediaNotification()
actually depended on it.
Bug: 154137987
Test: add media notification fresh on lockscreen, without ever updating, observe media extracted to background
Change-Id: I8f7ef11d5c99f2905c4942c07a701bbc134c1307
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/NotificationMediaManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationMediaManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationMediaManager.java index e32d174d7c77..459c95b82ba4 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationMediaManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationMediaManager.java @@ -206,12 +206,12 @@ public class NotificationMediaManager implements Dumpable { mMainExecutor = mainExecutor; notificationEntryManager.addNotificationEntryListener(new NotificationEntryListener() { @Override - public void onPendingEntryAdded(NotificationEntry entry) { + public void onEntryInflated(NotificationEntry entry) { findAndUpdateMediaNotifications(); } @Override - public void onPreEntryUpdated(NotificationEntry entry) { + public void onEntryReinflated(NotificationEntry entry) { findAndUpdateMediaNotifications(); } |