summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard/android/activity/SettingsActivity.java
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-27 18:57:52 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-27 18:57:52 +0200
commit292df1217580fdda3592f59ed356bdb289564392 (patch)
treecf2ce12534656d1f5642116ce1d6402114579d4d /app/src/main/java/com/wireguard/android/activity/SettingsActivity.java
parentf988306c17a8acbc4e0c9784a99d63a16ad19950 (diff)
Support always-on-vpn
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java/com/wireguard/android/activity/SettingsActivity.java')
-rw-r--r--app/src/main/java/com/wireguard/android/activity/SettingsActivity.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main/java/com/wireguard/android/activity/SettingsActivity.java b/app/src/main/java/com/wireguard/android/activity/SettingsActivity.java
index 2507db67..040c5efc 100644
--- a/app/src/main/java/com/wireguard/android/activity/SettingsActivity.java
+++ b/app/src/main/java/com/wireguard/android/activity/SettingsActivity.java
@@ -94,9 +94,10 @@ public class SettingsActivity extends AppCompatActivity {
public void onCreatePreferences(final Bundle savedInstanceState, final String key) {
addPreferencesFromResource(R.xml.preferences);
if (Application.getComponent().getBackendType() != WgQuickBackend.class) {
- final Preference toolsInstaller =
- getPreferenceManager().findPreference("tools_installer");
- getPreferenceScreen().removePreference(toolsInstaller);
+ Preference pref = getPreferenceManager().findPreference("tools_installer");
+ getPreferenceScreen().removePreference(pref);
+ pref = getPreferenceManager().findPreference("restore_on_boot");
+ getPreferenceScreen().removePreference(pref);
}
}
}