Skip to content
Snippets Groups Projects
Verified Commit 10f7e581 authored by Matthew Finkel's avatar Matthew Finkel Committed by Pier Angelo Vendrame
Browse files

Bug 25741: TBA: Disable GeckoNetworkManager

The browser should not need information related to the network
interface or network state, tor should take care of that.
parent b25a9813
No related branches found
No related tags found
1 merge request!543Tor Browser 12.5a 102.8.0esr rebase
......@@ -161,7 +161,9 @@ public final class GeckoRuntime implements Parcelable {
mPaused = false;
// Monitor network status and send change notifications to Gecko
// while active.
GeckoNetworkManager.getInstance().start(GeckoAppShell.getApplicationContext());
if (BuildConfig.TOR_BROWSER_VERSION == "") {
GeckoNetworkManager.getInstance().start(GeckoAppShell.getApplicationContext());
}
}
@OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
......@@ -169,7 +171,9 @@ public final class GeckoRuntime implements Parcelable {
Log.d(LOGTAG, "Lifecycle: onPause");
mPaused = true;
// Stop monitoring network status while inactive.
GeckoNetworkManager.getInstance().stop();
if (BuildConfig.TOR_BROWSER_VERSION == "") {
GeckoNetworkManager.getInstance().stop();
}
GeckoThread.onPause();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment