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

Commit 7886c037 authored by Rajeev Kumar's avatar Rajeev Kumar
Browse files

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

AnimationLayerSet.

Change-Id: I8563d17d97ff36c2b07f73ecb73b0a355780355e
Bug: 62466540
(cherry picked from commit 20ecc54e)
parent 93e39ecd
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -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);
    }