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

Commit be46bb90 authored by Makoto Onuki's avatar Makoto Onuki Committed by Automerger Merge Worker
Browse files

Merge "Change Shallow Copy to Deep Copy in UsageStats" am: f4d7116b

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1796513

Change-Id: If0a979f9b0b39387bdd854859187b8b14ae9e4bd
parents 67ae0a36 f4d7116b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -187,9 +187,9 @@ public final class UsageStats implements Parcelable {
        mLaunchCount = stats.mLaunchCount;
        mAppLaunchCount = stats.mAppLaunchCount;
        mLastEvent = stats.mLastEvent;
        mActivities = stats.mActivities;
        mForegroundServices = stats.mForegroundServices;
        mChooserCounts = stats.mChooserCounts;
        mActivities = stats.mActivities.clone();
        mForegroundServices = new ArrayMap<>(stats.mForegroundServices);
        mChooserCounts = new ArrayMap<>(stats.mChooserCounts);
    }

    /**