Simplify code for All Apps touch feedback
Change-Id: I5a2ab81a140cdbd619434b266e16b8a938f5990c
This commit is contained in:
@@ -56,15 +56,7 @@ public class PagedViewIcon extends TextView {
|
||||
}
|
||||
|
||||
protected void drawableStateChanged() {
|
||||
if (isPressed()) {
|
||||
if (getAlpha() != 0.5f) {
|
||||
setAlpha(0.5f);
|
||||
}
|
||||
} else {
|
||||
if (getAlpha() != 1f) {
|
||||
setAlpha(1f);
|
||||
}
|
||||
}
|
||||
setAlpha(isPressed() ? 0.5f : 1f);
|
||||
super.drawableStateChanged();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user