summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2017-12-14 14:12:05 +0100
committercyBerta <cyberta@riseup.net>2017-12-14 14:12:05 +0100
commit63d806d5e7de82526d9376925dcb17dac819aa45 (patch)
treee3f2f393214e35780ff348230653d693a40e4bd0 /app/src
parentedb50a2d375cc5b9d01ddeed08deea2e9b7cb043 (diff)
#8742 cleanup camelCase
Diffstat (limited to 'app/src')
-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);