summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard/android/activity/SettingsActivity.java
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2020-02-28 13:16:31 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2020-02-28 13:16:31 +0530
commit5e94adc73a302eff41e63b133d2a3bc14dc14028 (patch)
treeb20574133c9d361abd3de296800db8d547da7fac /app/src/main/java/com/wireguard/android/activity/SettingsActivity.java
parent44fc0228a9dadda781e5e604632a703d73c2d5bd (diff)
ModuleLoader: Staticize isModuleLoaded
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
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.java3
1 files changed, 2 insertions, 1 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 442c93e6..f545c371 100644
--- a/app/src/main/java/com/wireguard/android/activity/SettingsActivity.java
+++ b/app/src/main/java/com/wireguard/android/activity/SettingsActivity.java
@@ -20,6 +20,7 @@ import android.view.MenuItem;
import com.wireguard.android.Application;
import com.wireguard.android.R;
import com.wireguard.android.backend.WgQuickBackend;
+import com.wireguard.android.util.ModuleLoader;
import java.util.ArrayList;
import java.util.Arrays;
@@ -113,7 +114,7 @@ public class SettingsActivity extends ThemeChangeAwareActivity {
final Preference moduleInstaller = getPreferenceManager().findPreference("module_downloader");
moduleInstaller.setVisible(false);
- if (Application.getModuleLoader().isModuleLoaded()) {
+ if (ModuleLoader.isModuleLoaded()) {
screen.removePreference(moduleInstaller);
} else {
Application.getAsyncWorker().runAsync(Application.getRootShell()::start).whenComplete((v, e) -> {