Merge "Change Shallow Copy to Deep Copy in UsageStats" am: f4d7116b49 am: be46bb90ac am: c1caced3ce am: b18647fb90

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

Change-Id: Ia8608e103ec2d24121fc0e382f319a8fd90d00a1
This commit is contained in:
Makoto Onuki
2021-08-23 21:06:51 +00:00
committed by Automerger Merge Worker

View File

@@ -187,9 +187,9 @@ public final class UsageStats implements Parcelable {
mLaunchCount = stats.mLaunchCount; mLaunchCount = stats.mLaunchCount;
mAppLaunchCount = stats.mAppLaunchCount; mAppLaunchCount = stats.mAppLaunchCount;
mLastEvent = stats.mLastEvent; mLastEvent = stats.mLastEvent;
mActivities = stats.mActivities; mActivities = stats.mActivities.clone();
mForegroundServices = stats.mForegroundServices; mForegroundServices = new ArrayMap<>(stats.mForegroundServices);
mChooserCounts = stats.mChooserCounts; mChooserCounts = new ArrayMap<>(stats.mChooserCounts);
} }
/** /**