From ca18746163621211847a2f184d19a6b3e2b4a1c0 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Fri, 31 Mar 2017 20:09:34 -0700 Subject: Adding support for dynamically change icon shape for AdaptiveIcons > This would allow developers to verify their icon designs on different device configurations > This settings is only visible when developer settings is enabled Change-Id: I7e32abfede001c134f23390734dcd39c93b68b9a --- src/com/android/launcher3/IconCache.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/com/android/launcher3/IconCache.java') diff --git a/src/com/android/launcher3/IconCache.java b/src/com/android/launcher3/IconCache.java index 9bf2809cb..924b79be0 100644 --- a/src/com/android/launcher3/IconCache.java +++ b/src/com/android/launcher3/IconCache.java @@ -572,6 +572,11 @@ public class IconCache { return entry; } + public synchronized void clear() { + Preconditions.assertWorkerThread(); + mIconDb.clear(); + } + /** * Adds a default package entry in the cache. This entry is not persisted and will be removed * when the cache is flushed. -- cgit v1.2.3