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>
This commit is contained in:
TreeHugger Robot
2022-07-09 00:04:32 +00:00
committed by Automerger Merge Worker

View File

@@ -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;