diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2014-10-02 15:58:31 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2014-10-08 11:07:11 -0700 |
commit | 1a745e8f18e54aff152ff51743ae7595adde6927 (patch) | |
tree | 5c178bfb3a51c96f4c036dc4eaa05625fd59cccb /src/com/android/launcher3/BubbleTextView.java | |
parent | b50cc8c5d6125715b139d978887830a5341971aa (diff) | |
download | android_packages_apps_Trebuchet-1a745e8f18e54aff152ff51743ae7595adde6927.tar.gz android_packages_apps_Trebuchet-1a745e8f18e54aff152ff51743ae7595adde6927.tar.bz2 android_packages_apps_Trebuchet-1a745e8f18e54aff152ff51743ae7595adde6927.zip |
Keeping icons in disabled state when SD-card is unmounted
> changing shortcutInfo.isDisabled to be a flag based variable
> on received OnPackageUnavailable, icons are disabled from desktop
instead of being removed. Icons in all apps are removed
Bug: 15852084
Bug: 16238283
Change-Id: I126d23c709682a917d4bbb84de71032593dce8f9
Diffstat (limited to 'src/com/android/launcher3/BubbleTextView.java')
-rw-r--r-- | src/com/android/launcher3/BubbleTextView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index 73c7831f9..07f3045a5 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -122,7 +122,7 @@ public class BubbleTextView extends TextView { LauncherAppState app = LauncherAppState.getInstance(); FastBitmapDrawable iconDrawable = Utilities.createIconDrawable(b); - iconDrawable.setGhostModeEnabled(info.isDisabled); + iconDrawable.setGhostModeEnabled(info.isDisabled != 0); setCompoundDrawables(null, iconDrawable, null, null); if (setDefaultPadding) { |