Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd5b7f9f authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing disabled icon getting changed back to normal state on long press

Change-Id: I4f35c1cbecfef7891f8b1187ba3be0af695d4fd5
parent 93229c40
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);
            }