Merge "Fix the exception of accessing an ArrayMap" into rvc-dev am: 98eedf79d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12042287 Change-Id: I591401d5f239885d25ba43b99e962341f90bda1c
This commit is contained in:
@@ -33,6 +33,7 @@ import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -190,7 +191,8 @@ public abstract class SliceBackgroundWorker<E> implements Closeable {
|
||||
|
||||
private static NotifySliceChangeHandler sHandler;
|
||||
|
||||
private final Map<Uri, Long> mLastUpdateTimeLookup = new ArrayMap<>();
|
||||
private final Map<Uri, Long> mLastUpdateTimeLookup = Collections.synchronizedMap(
|
||||
new ArrayMap<>());
|
||||
|
||||
private static NotifySliceChangeHandler getInstance() {
|
||||
if (sHandler == null) {
|
||||
|
Reference in New Issue
Block a user