Bug 694334 - Fix bug introduced in 7f874fcc92c4 that caused the session history to be lost on rotations [r=lucasr]

This commit is contained in:
Kartikaya Gupta 2011-10-14 16:45:15 -04:00
parent 11c243e412
commit 4e2f06b873

View File

@ -91,7 +91,7 @@ abstract public class GeckoApp
public static Button mAwesomeBar;
public static ImageButton mFavicon;
public static ProgressBar mProgressBar;
private SessionHistory mSessionHistory;
private static SessionHistory mSessionHistory;
enum LaunchState {Launching, WaitButton,
Launched, GeckoRunning, GeckoExiting};
@ -438,7 +438,9 @@ abstract public class GeckoApp
if (sGREDir == null)
sGREDir = new File(this.getApplicationInfo().dataDir);
mSessionHistory = new SessionHistory(this);
if (mSessionHistory == null) {
mSessionHistory = new SessionHistory(this);
} // else: keep session history across orientation changes
mMainHandler = new Handler();