mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 694334 - Fix bug introduced in 7f874fcc92c4 that caused the session history to be lost on rotations [r=lucasr]
This commit is contained in:
parent
11c243e412
commit
4e2f06b873
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user