summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps/AllAppsRecyclerView.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-01-29 13:14:14 -0800
committerSunny Goyal <sunnygoyal@google.com>2016-02-08 14:55:22 -0800
commit0ac7ede56afebe4401c0636196f5844be573ad68 (patch)
treec4bdfce0b5f788880354845ab51ae293bd608d1b /src/com/android/launcher3/allapps/AllAppsRecyclerView.java
parent0e0498031092488ff166145c12ce36cc0a80c490 (diff)
downloadandroid_packages_apps_Trebuchet-0ac7ede56afebe4401c0636196f5844be573ad68.tar.gz
android_packages_apps_Trebuchet-0ac7ede56afebe4401c0636196f5844be573ad68.tar.bz2
android_packages_apps_Trebuchet-0ac7ede56afebe4401c0636196f5844be573ad68.zip
Merging search bar with all apps
Change-Id: I78577124cd3c05d52669c3e52b0294d6eb1d194d
Diffstat (limited to 'src/com/android/launcher3/allapps/AllAppsRecyclerView.java')
-rw-r--r--src/com/android/launcher3/allapps/AllAppsRecyclerView.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsRecyclerView.java b/src/com/android/launcher3/allapps/AllAppsRecyclerView.java
index 1cb03c989..2b3d061e6 100644
--- a/src/com/android/launcher3/allapps/AllAppsRecyclerView.java
+++ b/src/com/android/launcher3/allapps/AllAppsRecyclerView.java
@@ -53,6 +53,8 @@ public class AllAppsRecyclerView extends BaseRecyclerView
private AllAppsBackgroundDrawable mEmptySearchBackground;
private int mEmptySearchBackgroundTopOffset;
+ private HeaderElevationController mElevationController;
+
public AllAppsRecyclerView(Context context) {
this(context, null);
}
@@ -83,6 +85,10 @@ 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.
*/
@@ -116,6 +122,9 @@ public class AllAppsRecyclerView extends BaseRecyclerView
mScrollbar.reattachThumbToScroll();
}
scrollToPosition(0);
+ if (mElevationController != null) {
+ mElevationController.reset();
+ }
}
/**