[SuwLib] Fix TintedDrawable

Mark the drawable as isStateful, so that state updates will be
propagated from TextView to the drawable.

Bug: 26904125
Change-Id: Ieffb49242f802753e64ba4ef997da48ba34ba05b
This commit is contained in:
Maurice Lam 2016-02-01 14:47:37 -08:00
parent 505cf2637c
commit c609ad41cf

View file

@ -123,6 +123,11 @@ public class NavigationBarButton extends Button {
super(new Drawable[] { wrapped });
}
@Override
public boolean isStateful() {
return true;
}
@Override
public boolean setState(int[] stateSet) {
boolean needsInvalidate = super.setState(stateSet);