Fix IOException in direct boot

This commit is contained in:
Mygod
2018-12-29 00:29:56 +08:00
parent cfada8d0c2
commit 1ced7566f5
2 changed files with 2 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ object TetheringManager {
@RequiresApi(24)
fun start(type: Int, showProvisioningUi: Boolean, callback: OnStartTetheringCallback, handler: Handler? = null) {
val proxy = ProxyBuilder.forClass(classOnStartTetheringCallback)
.dexCache(app.cacheDir)
.dexCache(app.deviceStorage.cacheDir)
.handler { proxy, method, args ->
if (args.isNotEmpty()) Timber.w("Unexpected args for ${method.name}: $args")
when (method.name) {