mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
Update GalleryDatabase.kt
This commit is contained in:
@ -44,10 +44,8 @@ abstract class GalleryDatabase : RoomDatabase() {
|
||||
}
|
||||
|
||||
fun destroyInstance() {
|
||||
if (db != null) {
|
||||
if(db!!.isOpen) {
|
||||
db?.close();
|
||||
}
|
||||
if (db?.isOpen == true) {
|
||||
db?.close()
|
||||
}
|
||||
db = null
|
||||
}
|
||||
|
Reference in New Issue
Block a user