From 5463adff4a487828fef6c2340aa15fef3e509ec0 Mon Sep 17 00:00:00 2001 From: Mygod Date: Sat, 27 Nov 2021 12:53:49 -0500 Subject: [PATCH] Fix writing to inaccessible storage --- mobile/src/main/java/be/mygod/vpnhotspot/util/UnblockCentral.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/util/UnblockCentral.kt b/mobile/src/main/java/be/mygod/vpnhotspot/util/UnblockCentral.kt index 6561aea8..ec4f71d8 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/util/UnblockCentral.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/util/UnblockCentral.kt @@ -18,7 +18,7 @@ object UnblockCentral { /** * Retrieve this property before doing dangerous shit. */ - private val init by lazy { UnblockHelper(app) } + private val init by lazy { UnblockHelper(app.deviceStorage) } @RequiresApi(31) fun setUserConfiguration(clazz: Class<*>) = init.let {