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