diff options
author | Tony Wickham <twickham@google.com> | 2019-08-12 18:33:48 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2019-11-14 12:31:01 -0800 |
commit | 2785a5996cebaae4df29c1f9e9efcaf2f7b0055f (patch) | |
tree | c6cb847d580b40479aa2a042c6e61dde81b64c25 /go | |
parent | 42a9ef0e9f87230930127f25e0ce80b5ea1f603a (diff) | |
download | android_packages_apps_Trebuchet-2785a5996cebaae4df29c1f9e9efcaf2f7b0055f.tar.gz android_packages_apps_Trebuchet-2785a5996cebaae4df29c1f9e9efcaf2f7b0055f.tar.bz2 android_packages_apps_Trebuchet-2785a5996cebaae4df29c1f9e9efcaf2f7b0055f.zip |
Improve quick switch from home by tracking both x and y motion
- Add NoButtonQuickSwitchTouchController which uses
BothAxesSwipeDetector to track horizontal and vertical motion.
- Initially, we only detect swipe left to right to quick switch
(like before), but then we allow swipe up to either go to
overview (if you hold) or back home (if you don't hold).
- xDisplacement transitions non-overview components out (e.g. shelf
and workspace), and translates overview in.
- yDisplacement translates overview up and scales it down
Bug: 126596417
Change-Id: Id679ad84c08246e205c667a78ed5df00d7276258
Merged-In: Id679ad84c08246e205c667a78ed5df00d7276258
Diffstat (limited to 'go')
-rw-r--r-- | go/quickstep/src/com/android/quickstep/util/ShelfPeekAnim.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/go/quickstep/src/com/android/quickstep/util/ShelfPeekAnim.java b/go/quickstep/src/com/android/quickstep/util/ShelfPeekAnim.java index 1e9ac6fbf..fb8901388 100644 --- a/go/quickstep/src/com/android/quickstep/util/ShelfPeekAnim.java +++ b/go/quickstep/src/com/android/quickstep/util/ShelfPeekAnim.java @@ -24,4 +24,8 @@ public class ShelfPeekAnim { public enum ShelfAnimState { } + + public boolean isPeeking() { + return false; + } } |