mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user