enable writeAheadLogging at the gallery database
This commit is contained in:
parent
7b2a181942
commit
e4df3a0cbe
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue