summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFup Duck <fupduck@sacknagel.com>2018-01-13 17:19:44 +0100
committerFup Duck <fupduck@sacknagel.com>2018-01-13 17:19:44 +0100
commit583e51a4150123faaf5445c680ca5aaff5f5aad7 (patch)
treeaa7e52123a705e77fe2199dca965fb461ce66fec /app
parent153e35707ed2854d89c61fdb9f82a6e9ec0db9cc (diff)
discussions on dashboard
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/Dashboard.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/Dashboard.java b/app/src/main/java/se/leap/bitmaskclient/Dashboard.java
index 07c6fdfb..901dee89 100644
--- a/app/src/main/java/se/leap/bitmaskclient/Dashboard.java
+++ b/app/src/main/java/se/leap/bitmaskclient/Dashboard.java
@@ -18,6 +18,7 @@ package se.leap.bitmaskclient;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
+import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
@@ -320,7 +321,7 @@ public class Dashboard extends ButterKnifeActivity {
* has caused to start Dashboard
* @return the created VPNFragment
*/
- public static VpnFragment prepareEipFragment(boolean hideAndTurnOnEipOnBoot) {
+ public VpnFragment prepareEipFragment(boolean hideAndTurnOnEipOnBoot) {
VpnFragment eip_fragment = new VpnFragment();
if (hideAndTurnOnEipOnBoot && !isAlwaysOn()) {
@@ -338,7 +339,7 @@ public class Dashboard extends ButterKnifeActivity {
* checks if Android's VPN feature 'always-on' is enabled for Bitmask
* @return true if 'always-on' is enabled false if not
*/
- private static boolean isAlwaysOn() {
+ private boolean isAlwaysOn() {
return preferences.getBoolean(EIP_IS_ALWAYS_ON, false);
}
@@ -444,7 +445,7 @@ public class Dashboard extends ButterKnifeActivity {
startActivityForResult(new Intent(this, ConfigurationWizard.class), REQUEST_CODE_SWITCH_PROVIDER);
}
- public static class DashboardReceiver implements ProviderAPIResultReceiver.Receiver{
+ private static class DashboardReceiver implements ProviderAPIResultReceiver.Receiver{
private Dashboard dashboard;