From e4df3a0cbec7140a41d3ba64254bbe959c2e95bf Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 24 Jul 2018 13:25:06 +0200 Subject: [PATCH] enable writeAheadLogging at the gallery database --- .../com/simplemobiletools/gallery/databases/GalleryDatabase.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/databases/GalleryDatabase.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/databases/GalleryDatabase.kt index 8f8df8e23..a787d3a4d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/databases/GalleryDatabase.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/databases/GalleryDatabase.kt @@ -26,6 +26,7 @@ abstract class GalleryDatabase : RoomDatabase() { db = Room.databaseBuilder(context.applicationContext, GalleryDatabase::class.java, "gallery.db") .fallbackToDestructiveMigration() .build() + db!!.openHelper.setWriteAheadLoggingEnabled(true) } } }