diff options
| author | John Reck <jreck@google.com> | 2011-06-09 16:23:01 -0700 |
|---|---|---|
| committer | John Reck <jreck@google.com> | 2011-06-10 13:13:11 -0700 |
| commit | 378a41055fab6c521cdc1d9b2cfeefff2af19e7c (patch) | |
| tree | 0ae906555202b3d60e9a58d52529c3a0763b0406 /src/com/android/browser/Controller.java | |
| parent | fc6c49bdda8d5d6a6cddedba9a1908bc2a58d2c1 (diff) | |
Always offer to restore
Always offer to restore (even across reboots)
Periodically save while the user is typing in a textfield
Change-Id: If226ea7d2e19c58d8205d663f9f8dd670c712436
Diffstat (limited to 'src/com/android/browser/Controller.java')
| -rw-r--r-- | src/com/android/browser/Controller.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 986b6174..5fb413bb 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -226,7 +226,7 @@ public class Controller mDataController = DataController.getInstance(mActivity); mTabControl = new TabControl(this); mSettings.setController(this); - mCrashRecoveryHandler = new CrashRecoveryHandler(this); + mCrashRecoveryHandler = CrashRecoveryHandler.initialize(this); mUrlHandler = new UrlHandler(this); mIntentHandler = new IntentHandler(mActivity, this); @@ -262,7 +262,6 @@ public class Controller void start(final Bundle icicle, final Intent intent) { boolean noCrashRecovery = intent.getBooleanExtra(NO_CRASH_RECOVERY, false); if (icicle != null || noCrashRecovery) { - mCrashRecoveryHandler.clearState(); doStart(icicle, intent); } else { mCrashRecoveryHandler.startRecovery(intent); @@ -615,7 +614,7 @@ public class Controller mNetworkHandler.onPause(); WebView.disablePlatformNotifications(); - mCrashRecoveryHandler.clearState(); + mCrashRecoveryHandler.backupState(); } void onSaveInstanceState(Bundle outState, boolean saveImages) { @@ -2141,6 +2140,7 @@ public class Controller protected void removeTab(Tab tab) { mUi.removeTab(tab); mTabControl.removeTab(tab); + mCrashRecoveryHandler.backupState(); } @Override |
