Fix writing to inaccessible storage
This commit is contained in:
@@ -18,7 +18,7 @@ object UnblockCentral {
|
|||||||
/**
|
/**
|
||||||
* Retrieve this property before doing dangerous shit.
|
* Retrieve this property before doing dangerous shit.
|
||||||
*/
|
*/
|
||||||
private val init by lazy { UnblockHelper(app) }
|
private val init by lazy { UnblockHelper(app.deviceStorage) }
|
||||||
|
|
||||||
@RequiresApi(31)
|
@RequiresApi(31)
|
||||||
fun setUserConfiguration(clazz: Class<*>) = init.let {
|
fun setUserConfiguration(clazz: Class<*>) = init.let {
|
||||||
|
|||||||
Reference in New Issue
Block a user