[snapshot] optimizing WatchedArrayList snapshot am: d5c4c550e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18185712 Change-Id: Icbecd9f30e5ad59b04064490db4efc505a5edf54 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -416,7 +416,7 @@ public class WatchedArrayList<E> extends WatchableImpl
|
||||
dst.mStorage.ensureCapacity(end);
|
||||
for (int i = 0; i < end; i++) {
|
||||
final E val = Snapshots.maybeSnapshot(src.get(i));
|
||||
dst.add(i, val);
|
||||
dst.add(val);
|
||||
}
|
||||
dst.seal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user