diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/OnBootReceiver.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/OnBootReceiver.java b/app/src/main/java/se/leap/bitmaskclient/OnBootReceiver.java index 95828e46..f33bc27e 100644 --- a/app/src/main/java/se/leap/bitmaskclient/OnBootReceiver.java +++ b/app/src/main/java/se/leap/bitmaskclient/OnBootReceiver.java @@ -36,14 +36,14 @@ public class OnBootReceiver extends BroadcastReceiver { } if (startOnBoot) { Log.d("OpenVpn", "start StartActivity!"); - Intent startActivityIntent = new Intent(context, StartActivity.class); + Intent startActivityIntent = new Intent(context.getApplicationContext(), StartActivity.class); startActivityIntent.putExtra(EIP_RESTART_ON_BOOT, true); startActivityIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(startActivityIntent); } } else { if (isAlwaysOnConfigured) { - Intent dashboardIntent = new Intent(context, StartActivity.class); + Intent dashboardIntent = new Intent(context.getApplicationContext(), StartActivity.class); dashboardIntent.putExtra(APP_ACTION_CONFIGURE_ALWAYS_ON_PROFILE, true); dashboardIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(dashboardIntent); |