1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-12-12 18:29:48 +01:00

Try to fix bad proxy db, #591

This commit is contained in:
luvletter2333 2021-08-08 00:08:14 +08:00
parent d87666c9c1
commit f4453c1377
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8

View File

@ -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
}