mirror of
https://github.com/NekoX-Dev/NekoX.git
synced 2024-12-12 21:09:33 +01:00
Try to fix bad proxy db, #591
This commit is contained in:
parent
d87666c9c1
commit
f4453c1377
@ -2,6 +2,7 @@ package tw.nekomimi.nekogram.database
|
||||
|
||||
import org.dizitart.no2.Nitrite
|
||||
import org.telegram.messenger.ApplicationLoader
|
||||
import tw.nekomimi.nekogram.sub.SubInfo
|
||||
import tw.nekomimi.nekogram.utils.FileUtil
|
||||
import java.io.File
|
||||
|
||||
@ -22,6 +23,9 @@ fun mkDatabase(name: String, delete: Boolean = false): Nitrite {
|
||||
val test = nitrite.openSharedPreference("shared_preferences")
|
||||
test.connection.close()
|
||||
|
||||
val subs = nitrite.getRepository("proxy_sub", SubInfo::class.java)
|
||||
subs.close()
|
||||
|
||||
return nitrite
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user