diff options
author | Rajeev Kumar <rajekumar@google.com> | 2017-06-09 15:03:56 -0700 |
---|---|---|
committer | Rajeev Kumar <rajekumar@google.com> | 2017-06-09 23:25:41 +0000 |
commit | 7886c037f87ba2274e95b160d125b02bb3928449 (patch) | |
tree | f70445fbefd1c294c96e5fe168da0aead6c0e758 /src | |
parent | 93e39ecdebc9dbf07e8876178b6fd5fc16c62f1e (diff) | |
download | android_packages_apps_Trebuchet-7886c037f87ba2274e95b160d125b02bb3928449.tar.gz android_packages_apps_Trebuchet-7886c037f87ba2274e95b160d125b02bb3928449.tar.bz2 android_packages_apps_Trebuchet-7886c037f87ba2274e95b160d125b02bb3928449.zip |
Replace use of java.util.HashMap with android.util.ArrayMap in
AnimationLayerSet.
Change-Id: I8563d17d97ff36c2b07f73ecb73b0a355780355e
Bug: 62466540
(cherry picked from commit 20ecc54ebd2913f1e6a8d156be9ae0f8ca874a37)
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/anim/AnimationLayerSet.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/com/android/launcher3/anim/AnimationLayerSet.java b/src/com/android/launcher3/anim/AnimationLayerSet.java index 14bcd1718..f0b34587a 100644 --- a/src/com/android/launcher3/anim/AnimationLayerSet.java +++ b/src/com/android/launcher3/anim/AnimationLayerSet.java @@ -18,9 +18,8 @@ package com.android.launcher3.anim; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; +import android.util.ArrayMap; import android.view.View; - -import java.util.HashMap; import java.util.Iterator; import java.util.Map; @@ -29,14 +28,14 @@ import java.util.Map; */ public class AnimationLayerSet extends AnimatorListenerAdapter { - private final HashMap<View, Integer> mViewsToLayerTypeMap; + private final ArrayMap<View, Integer> mViewsToLayerTypeMap; public AnimationLayerSet() { - mViewsToLayerTypeMap = new HashMap<>(); + mViewsToLayerTypeMap = new ArrayMap<>(); } public AnimationLayerSet(View v) { - mViewsToLayerTypeMap = new HashMap<>(1); + mViewsToLayerTypeMap = new ArrayMap<>(1); addView(v); } |