diff options
author | Winson <winsonc@google.com> | 2015-08-21 11:16:27 -0700 |
---|---|---|
committer | Winson <winsonc@google.com> | 2015-09-28 17:32:19 -0700 |
commit | c088049113c261331b5685e64050d14a31cd72df (patch) | |
tree | 404a01d25361b6df9b754ec29ff3e4d053fe6bb8 /src/com/android/launcher3/PendingAppWidgetHostView.java | |
parent | 5189454083640c81bf3a171422b3ef114f150a77 (diff) | |
download | android_packages_apps_Trebuchet-c088049113c261331b5685e64050d14a31cd72df.tar.gz android_packages_apps_Trebuchet-c088049113c261331b5685e64050d14a31cd72df.tar.bz2 android_packages_apps_Trebuchet-c088049113c261331b5685e64050d14a31cd72df.zip |
Highlighting sectioned apps on fast-scroll.
- This CL fixes an old assumption we had about the height
of rows in AllApps, and ensures that we account for the
difference in height between the predictive icons and the
normal icons.
- In addition, we refactor FastBitmapDrawable to have multiple
states, which it manages in drawing itself, including the
press state and fast scroll focus states. And we also refactor
some of the fast scroll logic in the all apps recycler view
out to its own class.
Change-Id: I1988159b2767df733bbbfc7dc601859cde6c9943
Diffstat (limited to 'src/com/android/launcher3/PendingAppWidgetHostView.java')
-rw-r--r-- | src/com/android/launcher3/PendingAppWidgetHostView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/PendingAppWidgetHostView.java b/src/com/android/launcher3/PendingAppWidgetHostView.java index 40eadabd5..1d7694598 100644 --- a/src/com/android/launcher3/PendingAppWidgetHostView.java +++ b/src/com/android/launcher3/PendingAppWidgetHostView.java @@ -133,7 +133,7 @@ public class PendingAppWidgetHostView extends LauncherAppWidgetHostView implemen // 3) Setup icon in the center and app icon in the top right corner. if (mDisabledForSafeMode) { FastBitmapDrawable disabledIcon = mLauncher.createIconDrawable(mIcon); - disabledIcon.setGhostModeEnabled(true); + disabledIcon.setState(FastBitmapDrawable.State.DISABLED); mCenterDrawable = disabledIcon; mSettingIconDrawable = null; } else if (isReadyForClickSetup()) { |