summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/OnBootReceiver.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/OnBootReceiver.java b/app/src/main/java/se/leap/bitmaskclient/OnBootReceiver.java
index 943e877a..70358580 100644
--- a/app/src/main/java/se/leap/bitmaskclient/OnBootReceiver.java
+++ b/app/src/main/java/se/leap/bitmaskclient/OnBootReceiver.java
@@ -19,16 +19,16 @@ public class OnBootReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
preferences = context.getSharedPreferences(Dashboard.SHARED_PREFERENCES, Context.MODE_PRIVATE);
- boolean provider_configured = !preferences.getString(VPN_CERTIFICATE, "").isEmpty();
- boolean start_on_boot = preferences.getBoolean(RESTART_ON_BOOT, false);
+ boolean providerConfigured = !preferences.getString(VPN_CERTIFICATE, "").isEmpty();
+ boolean startOnBoot = preferences.getBoolean(RESTART_ON_BOOT, false);
boolean isAlwaysOnConfigured = preferences.getBoolean(IS_ALWAYS_ON, false);
- Log.d("OpenVPN", "OpenVPN onBoot intent received. Provider configured? " + provider_configured + " Start on boot? " + start_on_boot + " isAlwaysOn feature configured: " + isAlwaysOnConfigured);
- if (provider_configured) {
+ Log.d("OpenVPN", "OpenVPN onBoot intent received. Provider configured? " + providerConfigured + " Start on boot? " + startOnBoot + " isAlwaysOn feature configured: " + isAlwaysOnConfigured);
+ if (providerConfigured) {
if (isAlwaysOnConfigured) {
//exit because the app is already setting up the vpn
return;
}
- if (start_on_boot) {
+ if (startOnBoot) {
Intent dashboard_intent = new Intent(context, Dashboard.class);
dashboard_intent.putExtra(RESTART_ON_BOOT, true);
dashboard_intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);