Merge "Change Shallow Copy to Deep Copy in UsageStats" am: f4d7116b49 am: be46bb90ac am: c1caced3ce am: b18647fb90 am: bd73ff4f80
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1796513 Change-Id: I0e5a90b52849c83a4d2e9bdefed734b8187f71f5
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user