summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps/AllAppsRecyclerView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/allapps/AllAppsRecyclerView.java')
-rw-r--r--src/com/android/launcher3/allapps/AllAppsRecyclerView.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsRecyclerView.java b/src/com/android/launcher3/allapps/AllAppsRecyclerView.java
index aaecf7a60..63acba5b2 100644
--- a/src/com/android/launcher3/allapps/AllAppsRecyclerView.java
+++ b/src/com/android/launcher3/allapps/AllAppsRecyclerView.java
@@ -416,6 +416,7 @@ public class AllAppsRecyclerView extends BaseRecyclerView
private void setSectionFastScrollFocused(int position) {
if (mPrevFastScrollFocusedSection != null) {
+ ((AllAppsGridAdapter)getAdapter()).setFocusedSection(mPrevFastScrollFocusedSection);
int size = mPrevFastScrollFocusedSection.numApps +
mPrevFastScrollFocusedSection.numOtherViews;
for (int i = 0; i < size; i++) {
@@ -429,6 +430,11 @@ public class AllAppsRecyclerView extends BaseRecyclerView
}
}
+ @Override
+ public void setPreviousSectionFastScrollFocused() {
+ setSectionFastScrollFocused(mPrevFastScrollFocusedPosition);
+ }
+
private void setSectionFastScrollDimmed(int position, boolean dimmed, boolean animate) {
if (mPrevFastScrollFocusedSection != null) {
int size = mPrevFastScrollFocusedSection.numApps +