mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Fixing disabled icon getting changed back to normal state on long press
Change-Id: I4f35c1cbecfef7891f8b1187ba3be0af695d4fd5
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user