summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/launcher3/WidgetPreviewLoader.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher3/WidgetPreviewLoader.java b/src/com/android/launcher3/WidgetPreviewLoader.java
index d496c1c08..7fcb9f9ad 100644
--- a/src/com/android/launcher3/WidgetPreviewLoader.java
+++ b/src/com/android/launcher3/WidgetPreviewLoader.java
@@ -378,9 +378,13 @@ public class WidgetPreviewLoader {
// Delete everything
try {
db.delete(CacheDb.TABLE_NAME, null, null);
+ } catch (SQLiteReadOnlyDatabaseException e) {
+ // After a DB update subsequent calls to getWritableDatabase seems always result in
+ // a SQLiteReadOnlyDatabaseException. Protect this code path for the time being to
+ // prevent FC
+ return;
} catch (SQLiteDiskIOException e) {
} catch (SQLiteCantOpenDatabaseException e) {
- } catch (SQLiteReadOnlyDatabaseException e) {
dumpOpenFiles();
throw e;
}