From 9e1322de2516d1bed392093e2f3f0daa86310761 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 24 Oct 2023 16:41:38 -0700 Subject: [PATCH] Make sure the shared preference is committed --- app/src/main/java/com/topjohnwu/magisk/core/su/TestHandler.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/topjohnwu/magisk/core/su/TestHandler.kt b/app/src/main/java/com/topjohnwu/magisk/core/su/TestHandler.kt index 79e56a5c0..7ce724000 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/su/TestHandler.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/su/TestHandler.kt @@ -43,6 +43,7 @@ object TestHandler { runBlocking { ServiceLocator.policyDB.delete(2000) Config.suAutoResponse = Config.Value.SU_AUTO_ALLOW + Config.prefs.edit().commit() } return true }