Misc fixes

This commit is contained in:
Mygod
2020-07-18 03:20:22 +08:00
parent c344dbfa4a
commit 0f16210c80
6 changed files with 9 additions and 10 deletions

View File

@@ -151,7 +151,7 @@ sealed class TetherManager(protected val parent: TetheringFragment) : Manager(),
override fun onStateChanged(state: Int, failureReason: Int) {
if (state < 10 || state > 14) {
Timber.w(Exception("Unknown state $state"))
Timber.w(Exception("Unknown state $state, $failureReason"))
return
}
this.failureReason = if (state == 14) failureReason else null // WIFI_AP_STATE_FAILED