diff options
| author | 2022-07-09 00:04:32 +0000 | |
|---|---|---|
| committer | 2022-07-09 00:04:32 +0000 | |
| commit | 1565e111e57d34cc68f2c5b40aaa9a416f1e933f (patch) | |
| tree | e1ccf240e44092b44619396c8428627f3e675adf | |
| parent | bffcd18a9ef507fdf7db211d24f57a8a945d285a (diff) | |
| parent | 864d7277b01a5f1328b7d1bac09960112e517480 (diff) | |
Merge "Workaround a notification inflation race condition." into tm-qpr-dev am: 864d7277b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19212906
Change-Id: Iee7e31f1ce44d2a1d97757b8c66c93736cd3dff5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java | 4 |
1 files changed, 3 insertions, 1 deletions
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 cd4a44e1c6e0..94341ba4bb19 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 @@ -141,7 +141,9 @@ public class ExpandableNotificationRow extends ActivatableNotificationView public static final float DEFAULT_HEADER_VISIBLE_AMOUNT = 1.0f; private static final long RECENTLY_ALERTED_THRESHOLD_MS = TimeUnit.SECONDS.toMillis(30); - private boolean mUpdateSelfBackgroundOnUpdate; + // We don't correctly track dark mode until the content views are inflated, so always update + // the background on first content update just in case it happens to be during a theme change. + private boolean mUpdateSelfBackgroundOnUpdate = true; private boolean mNotificationTranslationFinished = false; private boolean mIsSnoozed; private boolean mIsFaded; |