mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Remove unnecessary plugin lookup.
This commit is contained in:
@@ -235,9 +235,6 @@ public class NavDrawerViewModel extends AndroidViewModel
|
||||
}
|
||||
|
||||
void setTorEnabled(boolean battery, boolean mobileData, boolean location) {
|
||||
Plugin plugin = pluginManager.getPlugin(TorConstants.ID);
|
||||
if (plugin == null) return;
|
||||
|
||||
Settings s = new Settings();
|
||||
s.putBoolean(PREF_PLUGIN_ENABLE, true);
|
||||
if (battery) s.putBoolean(PREF_TOR_ONLY_WHEN_CHARGING, false);
|
||||
|
||||
Reference in New Issue
Block a user