summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java')
-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;