diff options
author | Parménides GV <parmegv@sdf.org> | 2014-01-22 21:30:13 +0100 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2014-04-21 17:36:59 +0200 |
commit | 0a4162684fe5874f20a4d1e79eae611b93f72a24 (patch) | |
tree | 8efc97e50ae4fdd4f800dd1e4eadc296736fee2a /src | |
parent | b9a190335150e458099d81b70c16462fbe9e3cdd (diff) |
Bitmask doesn't start if last EIP status was off.
Diffstat (limited to 'src')
-rw-r--r-- | src/se/leap/bitmaskclient/OnBootReceiver.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/se/leap/bitmaskclient/OnBootReceiver.java b/src/se/leap/bitmaskclient/OnBootReceiver.java index 6d1dad79..3e87c308 100644 --- a/src/se/leap/bitmaskclient/OnBootReceiver.java +++ b/src/se/leap/bitmaskclient/OnBootReceiver.java @@ -12,7 +12,7 @@ public class OnBootReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) { - if (!context.getSharedPreferences(Dashboard.SHARED_PREFERENCES, Context.MODE_PRIVATE).getString(Provider.KEY, "").isEmpty()) { + if (!context.getSharedPreferences(Dashboard.SHARED_PREFERENCES, Context.MODE_PRIVATE).getString(Provider.KEY, "").isEmpty() && context.getSharedPreferences(Dashboard.SHARED_PREFERENCES, Context.MODE_PRIVATE).getBoolean(Dashboard.START_ON_BOOT, false)) { Intent dashboard_intent = new Intent(context, Dashboard.class); dashboard_intent.setAction(EIP.ACTION_START_EIP); dashboard_intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); |