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

Commit 7e35b7a1 authored by Milton Wu's avatar Milton Wu
Browse files

Refine CUJ_NOTIFICATION_SHADE_EXPAND_COLLAPSE

Do not begin CUJ_NOTIFICATION_SHADE_EXPAND_COLLAPSE when isDozing.

Bug: 221405860
Test: atest NotificationPanelViewControllerTest
Change-Id: Ib00f4196c8a9489a275b8d7a4729b8c143ce0986
parent dd67e838
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -384,7 +384,7 @@ public abstract class PanelViewController {

    protected void startExpandMotion(float newX, float newY, boolean startTracking,
            float expandedHeight) {
        if (!mHandlingPointerUp) {
        if (!mHandlingPointerUp && !mStatusBarStateController.isDozing()) {
            beginJankMonitoring(CUJ_NOTIFICATION_SHADE_EXPAND_COLLAPSE);
        }
        mInitialOffsetOnTouch = expandedHeight;
@@ -655,8 +655,10 @@ public abstract class PanelViewController {

            @Override
            public void onAnimationStart(Animator animation) {
                if (!mStatusBarStateController.isDozing()) {
                    beginJankMonitoring(CUJ_NOTIFICATION_SHADE_EXPAND_COLLAPSE);
                }
            }

            @Override
            public void onAnimationCancel(Animator animation) {