diff options
author | Tony Wickham <twickham@google.com> | 2019-07-18 14:38:46 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2019-07-18 15:10:21 -0700 |
commit | f33b6d4378c6029265742bdc19d805b73b096ffa (patch) | |
tree | d0b142088927b79e6a38679ea23279e6cfccea93 /quickstep/src/com/android/launcher3/uioverrides/touchcontrollers | |
parent | a160e2bc78d28d9bbe34d9760bbb3c7194f89fcc (diff) | |
download | android_packages_apps_Trebuchet-f33b6d4378c6029265742bdc19d805b73b096ffa.tar.gz android_packages_apps_Trebuchet-f33b6d4378c6029265742bdc19d805b73b096ffa.tar.bz2 android_packages_apps_Trebuchet-f33b6d4378c6029265742bdc19d805b73b096ffa.zip |
Allow TouchControllers to override shouldDisableGestures
Currently only StatusBarTouchController overrides this to always return
false, so that you can swipe down for notifications during transition to
home screen from an app (in gesture nav).
Bug: 137161198
Change-Id: I803c37937d5294810cbe0c1bbffcd5dddcc5ca3b
Diffstat (limited to 'quickstep/src/com/android/launcher3/uioverrides/touchcontrollers')
-rw-r--r-- | quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/StatusBarTouchController.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/StatusBarTouchController.java b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/StatusBarTouchController.java index f5ba3725d..18996ddb0 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/StatusBarTouchController.java +++ b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/StatusBarTouchController.java @@ -166,4 +166,10 @@ public class StatusBarTouchController implements TouchController { mSysUiProxy = RecentsModel.INSTANCE.get(mLauncher).getSystemUiProxy(); return mSysUiProxy != null; } + + @Override + public boolean allowWhenGesturesDisabled() { + // Always allow intercepting touches for this controller. + return true; + } }
\ No newline at end of file |