From 0a244ba105d2f2b6b5427f5d4999b9db3c468e10 Mon Sep 17 00:00:00 2001 From: cretin45 Date: Tue, 8 Mar 2016 12:18:15 -0800 Subject: Trebuchet: Highlight section being touched even when not scrolling scrubber Issue-id: CYNGNOS-1882 Change-Id: Ief8b6593528c1a04a95ffaeea44c379659427fd8 --- .../launcher3/allapps/AllAppsGridAdapter.java | 30 +++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'src/com/android/launcher3/allapps/AllAppsGridAdapter.java') diff --git a/src/com/android/launcher3/allapps/AllAppsGridAdapter.java b/src/com/android/launcher3/allapps/AllAppsGridAdapter.java index 3065fb428..643182588 100644 --- a/src/com/android/launcher3/allapps/AllAppsGridAdapter.java +++ b/src/com/android/launcher3/allapps/AllAppsGridAdapter.java @@ -80,6 +80,9 @@ public class AllAppsGridAdapter extends RecyclerView.Adapter= mFocusedSection.firstAppItem.position && + position < mFocusedSection.firstAppItem.position + + mFocusedSection.numApps) { + return false; + } + } + return mIconsDimmed; + } + public int getCustomPredictedAppsOffset(int rowIndex) { int offset = mCustomPredictedAppsHeaderHeight; if (rowIndex > 0) offset += mCustomPredictedAppsFooterHeight; @@ -661,6 +680,11 @@ public class AllAppsGridAdapter extends RecyclerView.Adapter