enable writeAheadLogging at the gallery database

This commit is contained in:
tibbi 2018-07-24 13:25:06 +02:00
parent 7b2a181942
commit e4df3a0cbe

View file

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