Merge "Workaround a notification inflation race condition." into tm-d1-dev

This commit is contained in:
TreeHugger Robot
2022-07-16 02:24:00 +00:00
committed by Android (Google) Code Review

View File

@@ -141,7 +141,9 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
public static final float DEFAULT_HEADER_VISIBLE_AMOUNT = 1.0f; public static final float DEFAULT_HEADER_VISIBLE_AMOUNT = 1.0f;
private static final long RECENTLY_ALERTED_THRESHOLD_MS = TimeUnit.SECONDS.toMillis(30); private static final long RECENTLY_ALERTED_THRESHOLD_MS = TimeUnit.SECONDS.toMillis(30);
private boolean mUpdateBackgroundOnUpdate; // 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 mUpdateBackgroundOnUpdate = true;
private boolean mNotificationTranslationFinished = false; private boolean mNotificationTranslationFinished = false;
private boolean mIsSnoozed; private boolean mIsSnoozed;
private boolean mIsFaded; private boolean mIsFaded;