summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BubbleTextView.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2014-10-02 15:58:31 -0700
committerSunny Goyal <sunnygoyal@google.com>2014-10-08 11:07:11 -0700
commit1a745e8f18e54aff152ff51743ae7595adde6927 (patch)
tree5c178bfb3a51c96f4c036dc4eaa05625fd59cccb /src/com/android/launcher3/BubbleTextView.java
parentb50cc8c5d6125715b139d978887830a5341971aa (diff)
downloadandroid_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.java2
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) {