Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d75266c authored by Rajeev Kumar's avatar Rajeev Kumar
Browse files

Replace use of java.util.HashMap with android.util.ArrayMap

in DrawableFactory.

Change-Id: I4ab7f908c3e8768762942ca83f576197dfea66d6
Bug: 62466540
parent 5188599a
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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.