use of com.android.launcher3.model.WidgetItem in project android_packages_apps_Launcher3 by crdroidandroid.
the class CachingWidgetPreviewLoader method removeCacheResult.
private void removeCacheResult(@NonNull WidgetItem item, @NonNull Size previewSize) {
ComponentKey key = toComponentKey(item);
synchronized (mCache) {
Map<Size, CacheResult> cacheResults = mCache.getOrDefault(key, new ArrayMap<>());
cacheResults.remove(previewSize);
mCache.put(key, cacheResults);
}
}
Aggregations