OSDN Git Service

Preventing launcher crashes due to low disk space.
authorSunny Goyal <sunnygoyal@google.com>
Fri, 18 Dec 2015 01:09:36 +0000 (17:09 -0800)
committerSunny Goyal <sunnygoyal@google.com>
Fri, 18 Dec 2015 18:20:52 +0000 (10:20 -0800)
commit6f70936f7fb7cb45ef6a2a3d1019b6ecf3e49440
tree54e0b982fb3cfc3fd6d50f8388a8149c4f1649fe
parentd896ee43cd9195a2a2742324733b036ee72875bb
Preventing launcher crashes due to low disk space.

In case of low disk space, all write operations to the IconCache are
silently ignored. This will not affect the Launcher behavior and
user will still see the latest icons, but in some cases, icon loading
would appear slow

Bug: 24585352
Change-Id: I85ccc519046fc3708403388bba89e019a3f2ce3d
src/com/android/launcher3/IconCache.java
src/com/android/launcher3/WidgetPreviewLoader.java
src/com/android/launcher3/util/SQLiteCacheHelper.java [new file with mode: 0644]