diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-05-07 11:56:00 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-05-08 14:43:32 -0700 |
commit | 161f96bc77805ed87f831b68e51fad61a23153bc (patch) | |
tree | a3f74eb9dcac6dd4673a51122ac62e5e92aea676 /src/com/android/launcher3/allapps/AllAppsRecyclerView.java | |
parent | b73fa5d7a46e840df13b2d5fb8ae956344524c3e (diff) | |
download | android_packages_apps_Trebuchet-161f96bc77805ed87f831b68e51fad61a23153bc.tar.gz android_packages_apps_Trebuchet-161f96bc77805ed87f831b68e51fad61a23153bc.tar.bz2 android_packages_apps_Trebuchet-161f96bc77805ed87f831b68e51fad61a23153bc.zip |
Moving apps search related logic into a custom layout file
This will allow derivative projects to easily change the search behavior
by simply overriding the xml file
Bug: 37616877
Change-Id: Ib8d6a2dab06819a52611e9a3d97c70c5a49bbf97
Diffstat (limited to 'src/com/android/launcher3/allapps/AllAppsRecyclerView.java')
-rw-r--r-- | src/com/android/launcher3/allapps/AllAppsRecyclerView.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsRecyclerView.java b/src/com/android/launcher3/allapps/AllAppsRecyclerView.java index 64e2fcb3d..f3089d2cd 100644 --- a/src/com/android/launcher3/allapps/AllAppsRecyclerView.java +++ b/src/com/android/launcher3/allapps/AllAppsRecyclerView.java @@ -53,8 +53,6 @@ public class AllAppsRecyclerView extends BaseRecyclerView { private AllAppsBackgroundDrawable mEmptySearchBackground; private int mEmptySearchBackgroundTopOffset; - private HeaderElevationController mElevationController; - public AllAppsRecyclerView(Context context) { this(context, null); } @@ -85,10 +83,6 @@ public class AllAppsRecyclerView extends BaseRecyclerView { mFastScrollHelper = new AllAppsFastScrollHelper(this, apps); } - public void setElevationController(HeaderElevationController elevationController) { - mElevationController = elevationController; - } - /** * Sets the number of apps per row in this recycler view. */ @@ -152,13 +146,8 @@ public class AllAppsRecyclerView extends BaseRecyclerView { */ public void scrollToTop() { // Ensure we reattach the scrollbar if it was previously detached while fast-scrolling - if (mScrollbar.isThumbDetached()) { - mScrollbar.reattachThumbToScroll(); - } + mScrollbar.reattachThumbToScroll(); scrollToPosition(0); - if (mElevationController != null) { - mElevationController.reset(); - } } @Override |