diff --git a/src/com/android/launcher2/PagedViewIcon.java b/src/com/android/launcher2/PagedViewIcon.java index 331bc147b8..548b394588 100644 --- a/src/com/android/launcher2/PagedViewIcon.java +++ b/src/com/android/launcher2/PagedViewIcon.java @@ -50,15 +50,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(); } }