diff options
author | Jonathan Miranda <jonmiranda@google.com> | 2018-06-15 19:44:12 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-06-15 19:44:12 +0000 |
commit | 0d2c6c23edd7b33d3610da5598d92ea12bb50393 (patch) | |
tree | a7e8c9433065d003f98a0b5bcd9e77b31937d707 /src | |
parent | f37cfa72d223214e3204272ccfbd62da664a0a42 (diff) | |
parent | 3c71c6a564004c70041e531ddea77f4f90f9edac (diff) | |
download | android_packages_apps_Trebuchet-0d2c6c23edd7b33d3610da5598d92ea12bb50393.tar.gz android_packages_apps_Trebuchet-0d2c6c23edd7b33d3610da5598d92ea12bb50393.tar.bz2 android_packages_apps_Trebuchet-0d2c6c23edd7b33d3610da5598d92ea12bb50393.zip |
Merge "Fix bug where QSB gets clipped when flinging All Apps open." into ub-launcher3-edmonton-polish
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/allapps/AllAppsContainerView.java | 3 | ||||
-rw-r--r-- | src/com/android/launcher3/views/SpringRelativeLayout.java | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java index 4d63c960a..fdf32af6d 100644 --- a/src/com/android/launcher3/allapps/AllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java @@ -314,7 +314,8 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo @Override public int getCanvasClipTopForOverscroll() { - return mHeader.getTop(); + // Do not clip if the QSB is attached to the spring, otherwise the QSB will get clipped. + return mSpringViews.get(getSearchView().getId()) ? 0 : mHeader.getTop(); } private void rebindAdapters(boolean showTabs) { diff --git a/src/com/android/launcher3/views/SpringRelativeLayout.java b/src/com/android/launcher3/views/SpringRelativeLayout.java index 892c59f27..b0313ceab 100644 --- a/src/com/android/launcher3/views/SpringRelativeLayout.java +++ b/src/com/android/launcher3/views/SpringRelativeLayout.java @@ -54,7 +54,7 @@ public class SpringRelativeLayout extends RelativeLayout { } }; - private final SparseBooleanArray mSpringViews = new SparseBooleanArray(); + protected final SparseBooleanArray mSpringViews = new SparseBooleanArray(); private final SpringAnimation mSpring; private float mDampedScrollShift = 0; |