summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2014-02-19 11:05:14 -0800
committerDanesh M <daneshm90@gmail.com>2014-02-19 11:05:14 -0800
commited02f1c215d79e204050633c25e221874154b17c (patch)
tree960eb7fd0b004685a68a4499989552b9fda6ea6d
parentbddc012ade4700b915eab8c5f8d58ac716505d4a (diff)
downloadandroid_packages_apps_Trebuchet-ed02f1c215d79e204050633c25e221874154b17c.tar.gz
android_packages_apps_Trebuchet-ed02f1c215d79e204050633c25e221874154b17c.tar.bz2
android_packages_apps_Trebuchet-ed02f1c215d79e204050633c25e221874154b17c.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: I1ce89fffaa535f5c47e42ec64801a70cbc3f7814
-rw-r--r--src/com/android/launcher3/HolographicLinearLayout.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/com/android/launcher3/HolographicLinearLayout.java b/src/com/android/launcher3/HolographicLinearLayout.java
index 5344a7ee9..96acb03c3 100644
--- a/src/com/android/launcher3/HolographicLinearLayout.java
+++ b/src/com/android/launcher3/HolographicLinearLayout.java
@@ -84,7 +84,6 @@ public class HolographicLinearLayout extends LinearLayout {
super.drawableStateChanged();
if (mImageView != null) {
- mHolographicHelper.generatePressedFocusedStates(mImageView);
Drawable d = mImageView.getDrawable();
if (d instanceof StateListDrawable) {
StateListDrawable sld = (StateListDrawable) d;