Fix writing to inaccessible storage

This commit is contained in:
Mygod
2021-11-27 12:53:49 -05:00
parent 1fbcbfd16a
commit 5463adff4a

View File

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