diff --git a/src/com/android/launcher2/PagedViewIcon.java b/src/com/android/launcher2/PagedViewIcon.java index b0288dc9b6..c79555e263 100644 --- a/src/com/android/launcher2/PagedViewIcon.java +++ b/src/com/android/launcher2/PagedViewIcon.java @@ -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(); } }