diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-02-13 12:13:43 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-02-16 11:19:01 -0800 |
commit | 9e76f682f3e52afa1f11172564b883c7dfda5063 (patch) | |
tree | 6e62354e0a5314ce2dea3a59850555a0ae1e220c /src/com/android/launcher3/CellLayout.java | |
parent | eb04b8415368ce28bacd100b8bffa85fede734a0 (diff) | |
download | packages_apps_Trebuchet-9e76f682f3e52afa1f11172564b883c7dfda5063.tar.gz packages_apps_Trebuchet-9e76f682f3e52afa1f11172564b883c7dfda5063.tar.bz2 packages_apps_Trebuchet-9e76f682f3e52afa1f11172564b883c7dfda5063.zip |
Removing wrapper around ViewPropertyAnimator, and using ObjectAnimator
instead
Bug: 35218222
Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r-- | src/com/android/launcher3/CellLayout.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java index 0df8e5a89..a7c2026c4 100644 --- a/src/com/android/launcher3/CellLayout.java +++ b/src/com/android/launcher3/CellLayout.java @@ -50,6 +50,7 @@ import com.android.launcher3.LauncherSettings.Favorites; import com.android.launcher3.accessibility.DragAndDropAccessibilityDelegate; import com.android.launcher3.accessibility.FolderAccessibilityHelper; import com.android.launcher3.accessibility.WorkspaceAccessibilityHelper; +import com.android.launcher3.anim.PropertyListBuilder; import com.android.launcher3.config.ProviderConfig; import com.android.launcher3.folder.FolderIcon; import com.android.launcher3.graphics.DragPreviewProvider; @@ -2097,12 +2098,13 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler { } setInitialAnimationValues(true); - a = new LauncherViewPropertyAnimator(child) - .scaleX(initScale) - .scaleY(initScale) - .translationX(initDeltaX) - .translationY(initDeltaY) - .setDuration(REORDER_ANIMATION_DURATION); + a = LauncherAnimUtils.ofPropertyValuesHolder(child, + new PropertyListBuilder() + .scale(initScale) + .translationX(initDeltaX) + .translationY(initDeltaY) + .build()) + .setDuration(REORDER_ANIMATION_DURATION); a.setInterpolator(new android.view.animation.DecelerateInterpolator(1.5f)); a.start(); } |