Skip to content
Snippets Groups Projects
Verified Commit b64e493d 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 56214c98
Branches
Tags
1 merge request!608Bug 41688: Rebased stable to 102.10 ESR
......@@ -161,15 +161,19 @@ public final class GeckoRuntime implements Parcelable {
mPaused = false;
// Monitor network status and send change notifications to Gecko
// while active.
if (BuildConfig.TOR_BROWSER_VERSION == "") {
GeckoNetworkManager.getInstance().start(GeckoAppShell.getApplicationContext());
}
}
@OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
void onPause() {
Log.d(LOGTAG, "Lifecycle: onPause");
mPaused = true;
// Stop monitoring network status while inactive.
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.
Please to comment