Skip to content
Snippets Groups Projects
Verified Commit 3a9ece68 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

fixup! Bug 25741: TBA: Disable GeckoNetworkManager

Bug 41647: Clean up our {TOR,BASE}_BROWSER(_VERSION)? macros

Changed TOR_BROWSER_VERSION to TOR_BROWSER.
parent 09494c9c
No related branches found
No related tags found
1 merge request!575Bug 41647 & 41453: macro cleanup (base-browser)
......@@ -161,9 +161,12 @@ public final class GeckoRuntime implements Parcelable {
mPaused = false;
// Monitor network status and send change notifications to Gecko
// while active.
if (BuildConfig.TOR_BROWSER_VERSION == "") {
if (!BuildConfig.TOR_BROWSER) {
GeckoNetworkManager.getInstance().start(GeckoAppShell.getApplicationContext());
} else {
Log.d(LOGTAG, "Tor Browser: skip GeckoNetworkManager startup");
}
}
@OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
......@@ -171,7 +174,7 @@ public final class GeckoRuntime implements Parcelable {
Log.d(LOGTAG, "Lifecycle: onPause");
mPaused = true;
// Stop monitoring network status while inactive.
if (BuildConfig.TOR_BROWSER_VERSION == "") {
if (!BuildConfig.TOR_BROWSER) {
GeckoNetworkManager.getInstance().stop();
}
GeckoThread.onPause();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment