summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorDanesh Mondegarian <daneshm90@gmail.com>2014-02-13 21:58:48 -0800
committerDanesh M <daneshm90@gmail.com>2014-02-14 06:05:42 +0000
commit474d306a10895ae1cc23020f97845920810b3914 (patch)
tree73e42896280dcf0b329edd7f4169dad226268666 /src/com
parent3fd2e7aa19c7cf1d3e7a6af4168fceefa8c53c17 (diff)
downloadandroid_packages_apps_Trebuchet-474d306a10895ae1cc23020f97845920810b3914.tar.gz
android_packages_apps_Trebuchet-474d306a10895ae1cc23020f97845920810b3914.tar.bz2
android_packages_apps_Trebuchet-474d306a10895ae1cc23020f97845920810b3914.zip
Trebuchet : Avoid unecessary generatePressedFocusedStates
When the drawable's state changes, don't generate state drawables until after the invalidate call, which takes care of this already, otherwise it gets drawn before measure/layout gets a chance to run. Change-Id: I92543302730446abbb11e3c9c963bd12689cdc7b
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/launcher3/HolographicImageView.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/com/android/launcher3/HolographicImageView.java b/src/com/android/launcher3/HolographicImageView.java
index 18ac092e6..33ab8b5a6 100644
--- a/src/com/android/launcher3/HolographicImageView.java
+++ b/src/com/android/launcher3/HolographicImageView.java
@@ -80,7 +80,6 @@ public class HolographicImageView extends ImageView {
protected void drawableStateChanged() {
super.drawableStateChanged();
- mHolographicHelper.generatePressedFocusedStates(this);
Drawable d = getDrawable();
if (d instanceof StateListDrawable) {
StateListDrawable sld = (StateListDrawable) d;