History log of /packages/apps/Launcher3/src/com/android/launcher3/PinchThresholdManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1743ac469113301f6cf0e7c2e4fff4fb16812bbb 17-Mar-2016 Tony Wickham <twickham@google.com> Added copywrite comments to pinch-related classes.

Maybe we should write a script that checks that this is present in
all our files? I didn't do a thorough check, but wouldn't be surprised
if others were missing.

Change-Id: I4777ff618f952b9b11fde60ebc8d897cf6449032
/packages/apps/Launcher3/src/com/android/launcher3/PinchThresholdManager.java
dadb304b4682998c43b9c07bef45b9a9380f3287 24-Feb-2016 Tony Wickham <twickham@google.com> Pinch to zoom out into overview mode.

There are 3 classes coordinating the gesture: PinchToOverviewListener,
PinchThresholdManager, and PinchAnimationManager.
- PTOL listens for the pinch gesture on DragLayer.
- When a pinch is detected, the PTOL keeps track of the interpolated
progress and passes it along to both the PTM and PAM.
- The PTM uses the progress to determine whether a new threshold has
been passed, and tells the PAM to animate it if so.
- The PAM uses the progress to animate things like workspace scale
throughout the pinch.
- If the pinch ends early, the PTOL uses the last passed threshold to
determine whether to animate to workspace or overview, and tells
PAM to perform the animation at the same velocity as the pinch.

Bug: 24414635
Change-Id: I9e53706c705f8b2982409bf7c223d8d0e9618bf0
/packages/apps/Launcher3/src/com/android/launcher3/PinchThresholdManager.java