From 6a88309c8eeb3d39a4915a3cdc2d6f56720f718f Mon Sep 17 00:00:00 2001 From: Mygod Date: Fri, 22 Jul 2022 14:56:13 -0400 Subject: [PATCH] Handle UnsupportedOperationException --- mobile/src/main/java/be/mygod/vpnhotspot/RepeaterService.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/RepeaterService.kt b/mobile/src/main/java/be/mygod/vpnhotspot/RepeaterService.kt index 98746cdf..5620321c 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/RepeaterService.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/RepeaterService.kt @@ -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 {