Make sure the shared preference is committed

This commit is contained in:
topjohnwu 2023-10-24 16:41:38 -07:00
parent 4e4ec73d94
commit 9e1322de25

View File

@ -43,6 +43,7 @@ object TestHandler {
runBlocking { runBlocking {
ServiceLocator.policyDB.delete(2000) ServiceLocator.policyDB.delete(2000)
Config.suAutoResponse = Config.Value.SU_AUTO_ALLOW Config.suAutoResponse = Config.Value.SU_AUTO_ALLOW
Config.prefs.edit().commit()
} }
return true return true
} }