Skip to content

Commit f691469

Browse files
committed
Update MainActivity.kt
1 parent 217cdae commit f691469

File tree

1 file changed

+2
-2
lines changed
  • app/src/main/java/org/OperatorFoundation/MoonbounceAndroidKotlin

1 file changed

+2
-2
lines changed

app/src/main/java/org/OperatorFoundation/MoonbounceAndroidKotlin/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ class MainActivity : AppCompatActivity()
275275
// Set the action (start not stop)
276276
moonbounceVPNIntent.action = START_VPN_ACTION
277277

278-
// Provide the activity that should receive the vpn status broadcasts
279-
moonbounceVPNIntent.putExtra(APP_PACKAGE, MainActivity::class.java)
278+
// Provide the package that should receive the vpn status broadcasts
279+
moonbounceVPNIntent.putExtra(APP_PACKAGE, this.packageName)
280280

281281
// Set the IP address of the vpn server (transport server if a transport is being used)
282282
ipAddress = ipEditText.text.toString()

0 commit comments

Comments
 (0)