summaryrefslogtreecommitdiffstats
path: root/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2019-07-23 20:54:13 -0700
committerWinson Chung <winsonc@google.com>2019-07-23 20:54:13 -0700
commit3fc9a1cf695d6d561953e53e159ed786e193c48d (patch)
tree3a0e35d751a94716de0020fa4fa2d67434ed753a /quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
parent5841e40a95b2d01386d83b83abeef9b150d833c5 (diff)
parent7b0520afe48b511ed910de1048405185712e5b03 (diff)
downloadandroid_packages_apps_Trebuchet-3fc9a1cf695d6d561953e53e159ed786e193c48d.tar.gz
android_packages_apps_Trebuchet-3fc9a1cf695d6d561953e53e159ed786e193c48d.tar.bz2
android_packages_apps_Trebuchet-3fc9a1cf695d6d561953e53e159ed786e193c48d.zip
Merging ub-launcher3-qt-r1-dev, build 5749827
Test: Manual Bug:136282913 P1 Swipe up from Assistant Fulfillment Card Jank Bug:137129923 P1 Pixel launcher is leaking memory Bug:137161198 P1 Unable to pull notification panel down with a swipe on home screen Bug:137253043 P1 "Pixel Launcher keeps stopping" when scrolling through recent apps Bug:137487381 P1 Overview goes back to fullscreen when swiping up during transition Bug:137836033 P4 Fail to stop music due to "Swipe failed to receive an event for the swipe end" Bug:138152531 P2 [Android Q][04713598] Launcher test cases are failed Bug:138236583 P1 Icon scale is wrong when dragging from all apps or folders Bug:138251824 P1 Flake: want to switch from background to overview; Swipe failed to receive an event for the swipe end Bug:138252347 P1 qt-r1-dev Pixel Launcher flag ENABLE_HINTS_IN_OVERVIEW is Disable by Default Change-Id: Idd0e987d26e1ffc75cdb9f90e9c08c26bb8c6503
Diffstat (limited to 'quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java')
-rw-r--r--quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
index b566837da..9b157d163 100644
--- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
+++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
@@ -474,11 +474,6 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
}
@Override
- protected boolean shouldBlockGestures(MotionEvent ev) {
- return Utilities.shouldDisableGestures(ev);
- }
-
- @Override
public boolean onTouchEvent(MotionEvent ev) {
super.onTouchEvent(ev);
final int x = (int) ev.getX();
@@ -1697,6 +1692,9 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
* @return How many pixels the running task is offset on the x-axis due to the current scrollX.
*/
public float getScrollOffset() {
+ if (getRunningTaskIndex() == -1) {
+ return 0;
+ }
int startScroll = getScrollForPage(getRunningTaskIndex());
int offsetX = startScroll - getScrollX();
offsetX *= getScaleX();