enable writeAheadLogging at the gallery database

This commit is contained in:
tibbi 2018-07-24 13:25:06 +02:00
parent 7b2a181942
commit e4df3a0cbe
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ abstract class GalleryDatabase : RoomDatabase() {
db = Room.databaseBuilder(context.applicationContext, GalleryDatabase::class.java, "gallery.db") db = Room.databaseBuilder(context.applicationContext, GalleryDatabase::class.java, "gallery.db")
.fallbackToDestructiveMigration() .fallbackToDestructiveMigration()
.build() .build()
db!!.openHelper.setWriteAheadLoggingEnabled(true)
} }
} }
} }