diff options
author | John Reck <jreck@google.com> | 2011-07-29 10:13:53 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-07-29 10:13:53 -0700 |
commit | b89abd3153689d9a954715326257925cb08d76a1 (patch) | |
tree | 7a6a09c28bfa6758c4b8cbdda47a8d1235044999 /src/com/android/browser/CrashRecoveryHandler.java | |
parent | 10aa4bd07ad26c4797abc1bc85e71bd49a6299b7 (diff) | |
download | packages_apps_Browser-b89abd3153689d9a954715326257925cb08d76a1.zip packages_apps_Browser-b89abd3153689d9a954715326257925cb08d76a1.tar.gz packages_apps_Browser-b89abd3153689d9a954715326257925cb08d76a1.tar.bz2 |
Fix recovery flow
Bug: 5096566
Change-Id: Ib7b7e24d5953d02c5e824fc9ef74468fe80480ec
Diffstat (limited to 'src/com/android/browser/CrashRecoveryHandler.java')
-rw-r--r-- | src/com/android/browser/CrashRecoveryHandler.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/com/android/browser/CrashRecoveryHandler.java b/src/com/android/browser/CrashRecoveryHandler.java index fdcdbc6..319ff89 100644 --- a/src/com/android/browser/CrashRecoveryHandler.java +++ b/src/com/android/browser/CrashRecoveryHandler.java @@ -243,11 +243,13 @@ public class CrashRecoveryHandler { mRecoveryState = loadCrashState(); mShouldPrompt = shouldPrompt(); } - if (mShouldPrompt) { - promptToRecover(mRecoveryState, intent); - return; - } else { - updateLastRecovered(); + if (mRecoveryState != null && !mRecoveryState.isEmpty()) { + if (mShouldPrompt) { + promptToRecover(mRecoveryState, intent); + return; + } else { + updateLastRecovered(); + } } mController.doStart(mRecoveryState, intent); mRecoveryState = null; |