summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/AppWidgetResizeFrame.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2018-09-18 16:17:22 -0700
committerSunny Goyal <sunnygoyal@google.com>2018-09-21 18:21:04 +0000
commit55bdeed7bb4ecf20f22a721b2c8e2e56b4f9f9f5 (patch)
treed8f4435b7ecc3c844e9746be29d21a2c7eb92666 /src/com/android/launcher3/AppWidgetResizeFrame.java
parent194f58525a28150fa0757fcbe831b03b4daa4180 (diff)
downloadandroid_packages_apps_Trebuchet-55bdeed7bb4ecf20f22a721b2c8e2e56b4f9f9f5.tar.gz
android_packages_apps_Trebuchet-55bdeed7bb4ecf20f22a721b2c8e2e56b4f9f9f5.tar.bz2
android_packages_apps_Trebuchet-55bdeed7bb4ecf20f22a721b2c8e2e56b4f9f9f5.zip
Removing various reflection based animations, to allow for better proguarding
Change-Id: If9df24ea4170e8a3d336057d1c3dc800934fc1ac
Diffstat (limited to 'src/com/android/launcher3/AppWidgetResizeFrame.java')
-rw-r--r--src/com/android/launcher3/AppWidgetResizeFrame.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/com/android/launcher3/AppWidgetResizeFrame.java b/src/com/android/launcher3/AppWidgetResizeFrame.java
index 0f5317be7..8e2ffe923 100644
--- a/src/com/android/launcher3/AppWidgetResizeFrame.java
+++ b/src/com/android/launcher3/AppWidgetResizeFrame.java
@@ -1,5 +1,10 @@
package com.android.launcher3;
+import static com.android.launcher3.LauncherAnimUtils.LAYOUT_HEIGHT;
+import static com.android.launcher3.LauncherAnimUtils.LAYOUT_WIDTH;
+import static com.android.launcher3.views.BaseDragLayer.LAYOUT_X;
+import static com.android.launcher3.views.BaseDragLayer.LAYOUT_Y;
+
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
@@ -429,10 +434,10 @@ public class AppWidgetResizeFrame extends AbstractFloatingView implements View.O
requestLayout();
} else {
ObjectAnimator oa = ObjectAnimator.ofPropertyValuesHolder(lp,
- PropertyValuesHolder.ofInt("width", lp.width, newWidth),
- PropertyValuesHolder.ofInt("height", lp.height, newHeight),
- PropertyValuesHolder.ofInt("x", lp.x, newX),
- PropertyValuesHolder.ofInt("y", lp.y, newY));
+ PropertyValuesHolder.ofInt(LAYOUT_WIDTH, lp.width, newWidth),
+ PropertyValuesHolder.ofInt(LAYOUT_HEIGHT, lp.height, newHeight),
+ PropertyValuesHolder.ofInt(LAYOUT_X, lp.x, newX),
+ PropertyValuesHolder.ofInt(LAYOUT_Y, lp.y, newY));
mFirstFrameAnimatorHelper.addTo(oa).addUpdateListener(a -> requestLayout());
AnimatorSet set = new AnimatorSet();