mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 04:39:54 +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) {
|
void setTorEnabled(boolean battery, boolean mobileData, boolean location) {
|
||||||
Plugin plugin = pluginManager.getPlugin(TorConstants.ID);
|
|
||||||
if (plugin == null) return;
|
|
||||||
|
|
||||||
Settings s = new Settings();
|
Settings s = new Settings();
|
||||||
s.putBoolean(PREF_PLUGIN_ENABLE, true);
|
s.putBoolean(PREF_PLUGIN_ENABLE, true);
|
||||||
if (battery) s.putBoolean(PREF_TOR_ONLY_WHEN_CHARGING, false);
|
if (battery) s.putBoolean(PREF_TOR_ONLY_WHEN_CHARGING, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user