From f69146992437f099348134bb2a1cd32daea089ed Mon Sep 17 00:00:00 2001 From: consuelita Date: Tue, 27 Feb 2024 14:08:36 -0600 Subject: [PATCH] Update MainActivity.kt --- .../MoonbounceAndroidKotlin/MainActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/OperatorFoundation/MoonbounceAndroidKotlin/MainActivity.kt b/app/src/main/java/org/OperatorFoundation/MoonbounceAndroidKotlin/MainActivity.kt index afbd28e..c22f2b5 100644 --- a/app/src/main/java/org/OperatorFoundation/MoonbounceAndroidKotlin/MainActivity.kt +++ b/app/src/main/java/org/OperatorFoundation/MoonbounceAndroidKotlin/MainActivity.kt @@ -275,8 +275,8 @@ class MainActivity : AppCompatActivity() // Set the action (start not stop) moonbounceVPNIntent.action = START_VPN_ACTION - // Provide the activity that should receive the vpn status broadcasts - moonbounceVPNIntent.putExtra(APP_PACKAGE, MainActivity::class.java) + // Provide the package that should receive the vpn status broadcasts + moonbounceVPNIntent.putExtra(APP_PACKAGE, this.packageName) // Set the IP address of the vpn server (transport server if a transport is being used) ipAddress = ipEditText.text.toString()