Verified Commit 0c82dc81 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 a609ae80
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -161,7 +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) {
        GeckoNetworkManager.getInstance().start(GeckoAppShell.getApplicationContext());
      } else {
        Log.d(LOGTAG, "Tor Browser: skip GeckoNetworkManager startup"); 
      }

    }

    @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
@@ -169,7 +174,9 @@ public final class GeckoRuntime implements Parcelable {
      Log.d(LOGTAG, "Lifecycle: onPause");
      mPaused = true;
      // Stop monitoring network status while inactive.
      if (!BuildConfig.TOR_BROWSER) {
        GeckoNetworkManager.getInstance().stop();
      }
      GeckoThread.onPause();
    }
  }