diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-07 19:19:20 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-17 21:14:09 +0100 |
commit | 0ea6f73332cf48374b8a98b16d68e25217ebf068 (patch) | |
tree | 53694268b30823c8973d6ae280ed766f4b44b974 /app/src/main/java/com/wireguard/android/activity/SettingsActivity.java | |
parent | b923f7bc57c39687bed225badeac0b35a7dee855 (diff) |
GoBackend: integrate into app
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.java | 8 |
1 files changed, 8 insertions, 0 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 3eb633ff..e3cd46b1 100644 --- a/app/src/main/java/com/wireguard/android/activity/SettingsActivity.java +++ b/app/src/main/java/com/wireguard/android/activity/SettingsActivity.java @@ -2,9 +2,12 @@ package com.wireguard.android.activity; import android.app.Activity; import android.os.Bundle; +import android.preference.Preference; import android.preference.PreferenceFragment; +import com.wireguard.android.Application; import com.wireguard.android.R; +import com.wireguard.android.backend.WgQuickBackend; /** * Interface for changing application-global persistent settings. @@ -26,6 +29,11 @@ public class SettingsActivity extends Activity { public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); + if (Application.getComponent().getBackendType() != WgQuickBackend.class) { + final Preference toolsInstaller = + getPreferenceManager().findPreference("tools_installer"); + getPreferenceScreen().removePreference(toolsInstaller); + } } } } |