Bug 655997 - Crash when changing orientation on Android (regression from bug 643032) [r=blassey]

This commit is contained in:
Matt Brubeck 2011-05-10 09:14:05 -07:00
parent 2dfcf68c91
commit b8f06db560

View File

@ -206,6 +206,10 @@ abstract public class GeckoApp
new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.FILL_PARENT));
mConnectivityFilter = new IntentFilter();
mConnectivityFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
mConnectivityReceiver = new GeckoConnectivityReceiver();
if (!checkAndSetLaunchState(LaunchState.PreLaunch,
LaunchState.Launching))
return;
@ -255,10 +259,6 @@ abstract public class GeckoApp
})
.show();
}
mConnectivityFilter = new IntentFilter();
mConnectivityFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
mConnectivityReceiver = new GeckoConnectivityReceiver();
}
boolean IsNewInstall() {