diff --git a/android/app/src/main/kotlin/tech/lolli/toolbox/MainActivity.kt b/android/app/src/main/kotlin/tech/lolli/toolbox/MainActivity.kt index 33e6aecf..5565e2d9 100644 --- a/android/app/src/main/kotlin/tech/lolli/toolbox/MainActivity.kt +++ b/android/app/src/main/kotlin/tech/lolli/toolbox/MainActivity.kt @@ -155,7 +155,7 @@ class MainActivity: FlutterFragmentActivity() { override fun onReceive(context: Context?, intent: Intent?) { if (intent?.action == ACTION_STOP_ALL_CONNECTIONS && ::channel.isInitialized) { try { - channel.invokeMethod("stopAllConnections") + channel.invokeMethod("stopAllConnections", null) } catch (e: Exception) { android.util.Log.e("MainActivity", "Failed to invoke stopAllConnections: ${e.message}") }