summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRajeev Kumar <rajekumar@google.com>2017-06-14 23:21:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-06-14 23:21:25 +0000
commit005a376c35d3fec2e840ceb13e236f98daed6646 (patch)
tree50f52671eddfb0c1f6d2ba767f746b1b09b7f328 /src
parent81d8a3dd2225c40df293d6e9b16e17133afc7137 (diff)
parent415ff73c84c05224e816ebac7cfb5ad2efc77246 (diff)
downloadandroid_packages_apps_Trebuchet-005a376c35d3fec2e840ceb13e236f98daed6646.tar.gz
android_packages_apps_Trebuchet-005a376c35d3fec2e840ceb13e236f98daed6646.tar.bz2
android_packages_apps_Trebuchet-005a376c35d3fec2e840ceb13e236f98daed6646.zip
Merge "Replace use of java.util.HashMap with android.util.ArrayMap in DrawableFactory." into ub-launcher3-dorval-polish
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/graphics/DrawableFactory.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/launcher3/graphics/DrawableFactory.java b/src/com/android/launcher3/graphics/DrawableFactory.java
index 60bbce406..45344c020 100644
--- a/src/com/android/launcher3/graphics/DrawableFactory.java
+++ b/src/com/android/launcher3/graphics/DrawableFactory.java
@@ -28,16 +28,14 @@ import android.graphics.drawable.Drawable;
import android.os.Process;
import android.os.UserHandle;
import android.support.annotation.UiThread;
+import android.util.ArrayMap;
import android.util.Log;
-
import com.android.launcher3.FastBitmapDrawable;
import com.android.launcher3.ItemInfo;
import com.android.launcher3.R;
import com.android.launcher3.Utilities;
import com.android.launcher3.allapps.AllAppsBackgroundDrawable;
-import java.util.HashMap;
-
/**
* Factory for creating new drawables.
*/
@@ -61,7 +59,7 @@ public class DrawableFactory {
}
protected final UserHandle mMyUser = Process.myUserHandle();
- protected final HashMap<UserHandle, Bitmap> mUserBadges = new HashMap<>();
+ protected final ArrayMap<UserHandle, Bitmap> mUserBadges = new ArrayMap<>();
/**
* Returns a FastBitmapDrawable with the icon.