Merge "Change Shallow Copy to Deep Copy in UsageStats"

This commit is contained in:
Makoto Onuki
2021-08-23 19:17:38 +00:00
committed by Gerrit Code Review

View File

@@ -171,9 +171,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);
} }
/** /**