From 5cccc8a08e1762b376fb08bd4eb6df56e60c4077 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Thu, 9 May 2019 16:44:51 -0700 Subject: [PATCH] Delay onNotificationUpdated onNotificationUpdated should only be called after inflation ends, otherwise views will be updated to an invalid state. Bug: 131914931 Test: toggle dark mode rapidly Change-Id: Id97ffe4823e1b46f5b521d8fb9e0f040702e475f --- .../statusbar/notification/row/ExpandableNotificationRow.java | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java index 24c7b29173601..c6a63b2db4dd8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java @@ -1242,7 +1242,6 @@ public class ExpandableNotificationRow extends ActivatableNotificationView } mStatusBarNotification.clearPackageContext(); mNotificationInflater.clearCachesAndReInflate(); - onNotificationUpdated(); } @Override