mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 805600 - Code cleanup: remove sIsGeckoReady; r=kats
This commit is contained in:
parent
85146049a7
commit
302506ba79
@ -463,7 +463,7 @@ public class AboutHomeContent extends ScrollView
|
||||
}
|
||||
|
||||
private void readLastTabs() {
|
||||
String jsonString = mActivity.getProfile().readSessionFile(GeckoApp.sIsGeckoReady);
|
||||
String jsonString = mActivity.getProfile().readSessionFile(GeckoApp.checkLaunchState(GeckoApp.LaunchState.GeckoRunning));
|
||||
if (jsonString == null) {
|
||||
// no previous session data
|
||||
return;
|
||||
|
@ -462,7 +462,7 @@ abstract public class BrowserApp extends GeckoApp
|
||||
}
|
||||
|
||||
private void showTabs(TabsPanel.Panel panel) {
|
||||
if (!sIsGeckoReady)
|
||||
if (!checkLaunchState(LaunchState.GeckoRunning))
|
||||
return;
|
||||
|
||||
mTabsPanel.show(panel);
|
||||
@ -846,7 +846,7 @@ abstract public class BrowserApp extends GeckoApp
|
||||
if (aMenu == null)
|
||||
return false;
|
||||
|
||||
if (!sIsGeckoReady)
|
||||
if (!checkLaunchState(LaunchState.GeckoRunning))
|
||||
aMenu.findItem(R.id.settings).setEnabled(false);
|
||||
|
||||
Tab tab = Tabs.getInstance().getSelectedTab();
|
||||
|
@ -163,7 +163,6 @@ abstract public class GeckoApp
|
||||
private static GeckoThread sGeckoThread;
|
||||
public Handler mMainHandler;
|
||||
private GeckoProfile mProfile;
|
||||
public static boolean sIsGeckoReady = false;
|
||||
public static int mOrientation;
|
||||
private boolean mIsRestoringActivity;
|
||||
private String mCurrentResponse = "";
|
||||
@ -979,7 +978,6 @@ abstract public class GeckoApp
|
||||
handlePageShow(tabId);
|
||||
} else if (event.equals("Gecko:Ready")) {
|
||||
mGeckoReadyStartupTimer.stop();
|
||||
sIsGeckoReady = true;
|
||||
setLaunchState(GeckoApp.LaunchState.GeckoRunning);
|
||||
GeckoAppShell.sendPendingEventsToGecko();
|
||||
connectGeckoLayerClient();
|
||||
|
Loading…
Reference in New Issue
Block a user