summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kevin Chyn <kchyn@google.com> 2017-08-15 15:39:54 -0700
committer Kevin Chyn <kchyn@google.com> 2017-08-15 16:54:03 -0700
commit637323131ab73e7dca0c55b718be6644db41eb55 (patch)
tree368819ce8713b200c66b5953d51f4c924feb23bb
parenta2991d045d549fb7570619ae658a23f10bee172e (diff)
Add method to cancel StatusBar touch
Fixes: 64611899 Test: manual Change-Id: I80f458f0365d9634c5f360793def6f673777473c
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
index 59e7005e7daf..b4d5f4ba8d56 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
@@ -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