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

Commit 12861191 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add check for the new animation scheduler state" into sc-dev am: b560ee3c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14489558

Change-Id: Ie6ef4aabaa9af83b376108ae8f9f7f16ee958421
parents b5baf2ee b560ee3c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import static android.app.StatusBarManager.DISABLE_SYSTEM_INFO;
import static com.android.systemui.statusbar.events.SystemStatusAnimationSchedulerKt.ANIMATING_IN;
import static com.android.systemui.statusbar.events.SystemStatusAnimationSchedulerKt.ANIMATING_OUT;
import static com.android.systemui.statusbar.events.SystemStatusAnimationSchedulerKt.IDLE;
import static com.android.systemui.statusbar.events.SystemStatusAnimationSchedulerKt.SHOWING_PERSISTENT_DOT;

import android.animation.ValueAnimator;
import android.annotation.Nullable;
@@ -348,7 +349,8 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue

    private void showSystemIconArea(boolean animate) {
        // Only show the system icon area if we are not currently animating
        if (mAnimationScheduler.getAnimationState() == IDLE) {
        int state = mAnimationScheduler.getAnimationState();
        if (state == IDLE || state == SHOWING_PERSISTENT_DOT) {
            animateShow(mSystemIconArea, animate);
        }
    }