Merge "Fixing disabled icon getting changed back to normal state on long press" into ub-launcher3-burnaby-polish

am: 5c6f99e290

* commit '5c6f99e29077aea5ab946e2ec30a5705e95a822b':
  Fixing disabled icon getting changed back to normal state on long press
This commit is contained in:
Sunny Goyal
2015-10-21 00:21:47 +00:00
committed by android-build-merger

View File

@@ -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);
}