Handle UnsupportedOperationException

This commit is contained in:
Mygod
2022-07-22 14:56:13 -04:00
parent 8becc4e14a
commit 6a88309c8e

View File

@@ -323,6 +323,11 @@ class RepeaterService : Service(), CoroutineScope, WifiP2pManager.ChannelListene
} catch (e: IllegalArgumentException) {
SmartSnackbar.make(getString(R.string.repeater_set_vendor_elements_failure, e.message)).show()
return
} catch (e: UnsupportedOperationException) {
if (ve.isNotEmpty()) {
SmartSnackbar.make(getString(R.string.repeater_set_vendor_elements_failure, e.message)).show()
}
return
}
if (reason == WifiP2pManager.ERROR) {
val rootReason = try {