diff options
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; |