Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5428a51 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Workaround a notification inflation race condition.

Change-Id: Ic13890a4a97628920f5e70d0f0cc24cc00b4829c
Fixes: 227880269
Fixes: 238037994
Test: manual
parent 9b723322
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;