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
This commit is contained in:
Lucas Dupin
2019-05-09 16:44:51 -07:00
parent 0d04871fb3
commit 5cccc8a08e

View File

@@ -1242,7 +1242,6 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
}
mStatusBarNotification.clearPackageContext();
mNotificationInflater.clearCachesAndReInflate();
onNotificationUpdated();
}
@Override