diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/wifi/WifiP2pManagerHelper.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/wifi/WifiP2pManagerHelper.kt index e78cbf5d..50919009 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/wifi/WifiP2pManagerHelper.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/wifi/WifiP2pManagerHelper.kt @@ -93,6 +93,7 @@ object WifiP2pManagerHelper { arrayOf(interfacePersistentGroupInfoListener)) { proxy, method, args -> if (method.name == "onPersistentGroupInfoAvailable") { if (args.size != 1) Timber.w(IllegalArgumentException("Unexpected args: $args")) + @Suppress("UNCHECKED_CAST") listener(getGroupList.invoke(args[0]) as Collection) null } else {