From 86bf62a75813fc9d7cd909d6e05ec18103445c45 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 20 Jul 2022 16:06:23 +0200 Subject: [PATCH] Truncate WAL --- app/src/main/java/eu/faircode/email/DB.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/DB.java b/app/src/main/java/eu/faircode/email/DB.java index d4edf4111b..fd0a00a64b 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -2433,7 +2433,7 @@ public abstract class DB extends RoomDatabase { long start = new Date().getTime(); StringBuilder sb = new StringBuilder(); SupportSQLiteDatabase sdb = db.getOpenHelper().getWritableDatabase(); - String mode = (BuildConfig.DEBUG || !BuildConfig.PLAY_STORE_RELEASE ? "RESTART" : "PASSIVE"); + String mode = (true ? "RESTART" : "PASSIVE"); try (Cursor cursor = sdb.query("PRAGMA wal_checkpoint(" + mode + ");")) { if (cursor.moveToNext()) { for (int i = 0; i < cursor.getColumnCount(); i++) {