diff options
author | George Mount <mount@google.com> | 2011-11-21 09:08:21 -0800 |
---|---|---|
committer | George Mount <mount@google.com> | 2011-11-23 14:06:03 -0800 |
commit | 3636d0a6d90fd8de55a4894210b2dbe23f32aac9 (patch) | |
tree | 7109001dd220719fe4d43369506dbd2d8b0b69a8 /src/com/android/browser/BrowserActivity.java | |
parent | e744d3b4f1f5d649c96641d5b77fb169b0e102d2 (diff) | |
download | packages_apps_Browser-3636d0a6d90fd8de55a4894210b2dbe23f32aac9.zip packages_apps_Browser-3636d0a6d90fd8de55a4894210b2dbe23f32aac9.tar.gz packages_apps_Browser-3636d0a6d90fd8de55a4894210b2dbe23f32aac9.tar.bz2 |
Crash recover no longer uses icicle.
Bug 5508252
Changed load state to use the crash recovery state every
time instead of using icicle. When the state is saved,
the value is written synchronously.
Moved settings from CrashRecoveryHandler to BrowserSettings
Change-Id: I1a241d4c488fe3246c7d7f1ee0ce26c42ba29429
Diffstat (limited to 'src/com/android/browser/BrowserActivity.java')
-rw-r--r-- | src/com/android/browser/BrowserActivity.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index 23aeed5..77fac4f 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java @@ -62,7 +62,7 @@ public class BrowserActivity extends Activity { finish(); return; } - mController = new Controller(this, icicle == null); + mController = new Controller(this); boolean xlarge = isTablet(this); if (xlarge) { mUi = new XLargeUi(this, mController); @@ -71,12 +71,8 @@ public class BrowserActivity extends Activity { } mController.setUi(mUi); - Bundle state = getIntent().getBundleExtra(EXTRA_STATE); - if (state != null && icicle == null) { - icicle = state; - } - - mController.start(icicle, getIntent()); + Intent intent = (icicle == null) ? getIntent() : null; + mController.start(intent); } public static boolean isTablet(Context context) { |