Mute Android 7.1 bug

This commit is contained in:
Mygod
2019-01-03 23:50:31 +08:00
parent 4287672aad
commit 615e7256d0

View File

@@ -120,7 +120,7 @@ sealed class TetherManager(protected val parent: TetheringFragment) : Manager(),
else -> app.getString(R.string.failure_reason_unknown, error) else -> app.getString(R.string.failure_reason_unknown, error)
} }
} catch (e: InvocationTargetException) { } catch (e: InvocationTargetException) {
Timber.w(e) if (Build.VERSION.SDK_INT != 25 || e.cause !is SecurityException) Timber.w(e) else Timber.d(e)
e.localizedMessage e.localizedMessage
} }
} }