History log of /packages/apps/Launcher3/src/com/android/launcher3/util/FlingBlockCheck.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0f640b6c1b1f600f4c8c39cb915f7a02603f311a 10-May-2018 Tony Wickham <twickham@google.com> Make fling thresholds consistent

There are 3 places we can block a fling:
- Swiping from home to all apps (through overview)
- Swiping from an app to all apps (through overview)
- Dismissing a task (in the same gesture that started by swiping down)

In all of these cases, we block the fling when crossing the threshold
to a new state (e.g. OVERVIEW), but unblock if the user pauses their
drag. With this change, the logic is consistent:
- Unblock the fling after pausing a short amount of time
- If a fling was blocked, increase the settling duration based on
velocity

Bug: 78089840
Bug: 78658678
Change-Id: I5ef52b74229418b867b26c3c6d3db2cf6e48914b
/packages/apps/Launcher3/src/com/android/launcher3/util/FlingBlockCheck.java