Fail without crashing the app
This commit is contained in:
@@ -214,7 +214,9 @@ class RepeaterManager(private val parent: TetheringFragment) : Manager(), Servic
|
|||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
if (e !is CancellationException) Timber.w(e)
|
if (e !is CancellationException) Timber.w(e)
|
||||||
passphrase = group.passphrase
|
passphrase = group.passphrase
|
||||||
|
try {
|
||||||
bssid = group.owner?.deviceAddress?.let(MacAddressCompat.Companion::fromString)
|
bssid = group.owner?.deviceAddress?.let(MacAddressCompat.Companion::fromString)
|
||||||
|
} catch (_: IllegalArgumentException) { }
|
||||||
this to true
|
this to true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user