Commit 5ddaf16e authored by Matthew Finkel's avatar Matthew Finkel Committed by Matthew Finkel
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 148e5986
...@@ -121,7 +121,9 @@ public final class GeckoRuntime implements Parcelable { ...@@ -121,7 +121,9 @@ public final class GeckoRuntime implements Parcelable {
mPaused = false; mPaused = false;
// Monitor network status and send change notifications to Gecko // Monitor network status and send change notifications to Gecko
// while active. // while active.
GeckoNetworkManager.getInstance().start(GeckoAppShell.getApplicationContext()); if (BuildConfig.TOR_BROWSER_VERSION == "") {
GeckoNetworkManager.getInstance().start(GeckoAppShell.getApplicationContext());
}
} }
@OnLifecycleEvent(Lifecycle.Event.ON_PAUSE) @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
...@@ -129,7 +131,9 @@ public final class GeckoRuntime implements Parcelable { ...@@ -129,7 +131,9 @@ public final class GeckoRuntime implements Parcelable {
Log.d(LOGTAG, "Lifecycle: onPause"); Log.d(LOGTAG, "Lifecycle: onPause");
mPaused = true; mPaused = true;
// Stop monitoring network status while inactive. // Stop monitoring network status while inactive.
GeckoNetworkManager.getInstance().stop(); if (BuildConfig.TOR_BROWSER_VERSION == "") {
GeckoNetworkManager.getInstance().stop();
}
GeckoThread.onPause(); GeckoThread.onPause();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment