mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 746086: NPE crash on onApplicationPause(). [r=mfinkle] [a=blocking-fennec]
This commit is contained in:
parent
e07a57f160
commit
ddc3330503
@ -2163,7 +2163,8 @@ abstract public class GeckoApp
|
||||
Log.i(LOGTAG, "application paused");
|
||||
GeckoAppShell.sendEventToGecko(GeckoEvent.createPauseEvent(true));
|
||||
|
||||
mConnectivityReceiver.unregisterFor(mAppContext);
|
||||
if (mConnectivityReceiver != null)
|
||||
mConnectivityReceiver.unregisterFor(mAppContext);
|
||||
GeckoNetworkManager.getInstance().stop();
|
||||
GeckoScreenOrientationListener.getInstance().stop();
|
||||
}
|
||||
@ -2174,7 +2175,8 @@ abstract public class GeckoApp
|
||||
if (checkLaunchState(LaunchState.GeckoRunning))
|
||||
GeckoAppShell.sendEventToGecko(GeckoEvent.createResumeEvent(true));
|
||||
|
||||
mConnectivityReceiver.registerFor(mAppContext);
|
||||
if (mConnectivityReceiver != null)
|
||||
mConnectivityReceiver.registerFor(mAppContext);
|
||||
GeckoNetworkManager.getInstance().start();
|
||||
GeckoScreenOrientationListener.getInstance().start();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user