summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajeev Kumar <rajekumar@google.com>2017-06-09 23:18:31 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-06-09 23:18:31 +0000
commit242c8105ab20f2c7bd1a40f066d1b29f4ea4f06b (patch)
tree9e18fcb73c47a1f12f3bb2d3d4fbc803e49fdd68
parentb9c5f58c632c526215c9d1ad5fffb2fd8c3933cc (diff)
parent20ecc54ebd2913f1e6a8d156be9ae0f8ca874a37 (diff)
downloadandroid_packages_apps_Trebuchet-242c8105ab20f2c7bd1a40f066d1b29f4ea4f06b.tar.gz
android_packages_apps_Trebuchet-242c8105ab20f2c7bd1a40f066d1b29f4ea4f06b.tar.bz2
android_packages_apps_Trebuchet-242c8105ab20f2c7bd1a40f066d1b29f4ea4f06b.zip
Merge "Replace use of java.util.HashMap with android.util.ArrayMap in AnimationLayerSet." into ub-launcher3-master
-rw-r--r--src/com/android/launcher3/anim/AnimationLayerSet.java9
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);
}