diff options
-rw-r--r-- | src/com/android/launcher3/BubbleTextView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index 10db45945..a3b92dcf7 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -252,6 +252,9 @@ public class BubbleTextView extends TextView FastBitmapDrawable d = (FastBitmapDrawable) mIcon; if (isPressed() || mStayPressed) { d.animateState(FastBitmapDrawable.State.PRESSED); + } else if (getTag() instanceof ShortcutInfo + && ((ShortcutInfo) getTag()).isDisabled != 0) { + d.animateState(FastBitmapDrawable.State.DISABLED); } else { d.animateState(FastBitmapDrawable.State.NORMAL); } |