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

Commit 63732313 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Add method to cancel StatusBar touch

Fixes: 64611899

Test: manual
Change-Id: I80f458f0365d9634c5f360793def6f673777473c
parent a2991d04
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -5155,6 +5155,14 @@ public class StatusBar extends SystemUI implements DemoMode,
        recomputeDisableFlags(true /* animate */);
    }

    public void cancelCurrentTouch() {
        if (mNotificationPanel.isTracking()) {
            mStatusBarWindow.cancelCurrentTouch();
            if (mState == StatusBarState.SHADE) {
                animateCollapsePanels();
            }
        }
    }

    WakefulnessLifecycle.Observer mWakefulnessObserver = new WakefulnessLifecycle.Observer() {
        @Override