Loading src/com/android/launcher3/IconCache.java +14 −0 Original line number Diff line number Diff line Loading @@ -146,6 +146,20 @@ public class IconCache { } } /** * Empty out the cache that aren't of the correct grid size */ public void flushInvalidIcons(DeviceProfile grid) { synchronized (mCache) { for (ComponentName cn : mCache.keySet()) { final CacheEntry e = mCache.get(cn); if (e.icon.getWidth() != grid.iconSizePx || e.icon.getHeight() != grid.iconSizePx) { mCache.remove(cn); } } } } /** * Fill in "application" with the icon and label for "info." */ Loading src/com/android/launcher3/Launcher.java +1 −0 Original line number Diff line number Diff line Loading @@ -402,6 +402,7 @@ public class Launcher extends Activity Context.MODE_PRIVATE); mModel = app.setLauncher(this); mIconCache = app.getIconCache(); mIconCache.flushInvalidIcons(grid); mDragController = new DragController(this); mInflater = getLayoutInflater(); Loading Loading
src/com/android/launcher3/IconCache.java +14 −0 Original line number Diff line number Diff line Loading @@ -146,6 +146,20 @@ public class IconCache { } } /** * Empty out the cache that aren't of the correct grid size */ public void flushInvalidIcons(DeviceProfile grid) { synchronized (mCache) { for (ComponentName cn : mCache.keySet()) { final CacheEntry e = mCache.get(cn); if (e.icon.getWidth() != grid.iconSizePx || e.icon.getHeight() != grid.iconSizePx) { mCache.remove(cn); } } } } /** * Fill in "application" with the icon and label for "info." */ Loading
src/com/android/launcher3/Launcher.java +1 −0 Original line number Diff line number Diff line Loading @@ -402,6 +402,7 @@ public class Launcher extends Activity Context.MODE_PRIVATE); mModel = app.setLauncher(this); mIconCache = app.getIconCache(); mIconCache.flushInvalidIcons(grid); mDragController = new DragController(this); mInflater = getLayoutInflater(); Loading