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

Commit 005a376c authored by Rajeev Kumar's avatar Rajeev Kumar Committed by Android (Google) Code Review
Browse files

Merge "Replace use of java.util.HashMap with android.util.ArrayMap in...

Merge "Replace use of java.util.HashMap with android.util.ArrayMap in DrawableFactory." into ub-launcher3-dorval-polish
parents 81d8a3dd 415ff73c
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.