diff options
author | cretin45 <cretin45@gmail.com> | 2016-03-08 12:18:15 -0800 |
---|---|---|
committer | cretin45 <cretin45@gmail.com> | 2016-03-08 12:45:19 -0800 |
commit | 0a244ba105d2f2b6b5427f5d4999b9db3c468e10 (patch) | |
tree | b818c5c1fd4859da95717d07ea4541d51bb1ead6 /src/com/android/launcher3/allapps/AllAppsRecyclerView.java | |
parent | ff12f71fd3442f0718e192ec3c831fb18c032b1a (diff) | |
download | android_packages_apps_Trebuchet-0a244ba105d2f2b6b5427f5d4999b9db3c468e10.tar.gz android_packages_apps_Trebuchet-0a244ba105d2f2b6b5427f5d4999b9db3c468e10.tar.bz2 android_packages_apps_Trebuchet-0a244ba105d2f2b6b5427f5d4999b9db3c468e10.zip |
Trebuchet: Highlight section being touched even when not scrolling scrubber
Issue-id: CYNGNOS-1882
Change-Id: Ief8b6593528c1a04a95ffaeea44c379659427fd8
Diffstat (limited to 'src/com/android/launcher3/allapps/AllAppsRecyclerView.java')
-rw-r--r-- | src/com/android/launcher3/allapps/AllAppsRecyclerView.java | 6 |
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 + |