Merge "Replace use of java.util.HashMap with android.util.ArrayMap in DrawableFactory." into ub-launcher3-dorval-polish

This commit is contained in:
Rajeev Kumar
2017-06-14 23:21:23 +00:00
committed by Android (Google) Code Review
@@ -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.