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