diff options
author | John Reck <jreck@google.com> | 2011-06-22 10:44:33 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-06-22 10:44:33 -0700 |
commit | 0b3165d365baa066465f5ae95d93feeec75a0ef3 (patch) | |
tree | 2f3c93b2fac3b8add8a2508f0662a2d53baca7fa /src/com/android | |
parent | 5d43ce897758b7cb5deadc1203717b965334784c (diff) | |
download | packages_apps_Browser-0b3165d365baa066465f5ae95d93feeec75a0ef3.zip packages_apps_Browser-0b3165d365baa066465f5ae95d93feeec75a0ef3.tar.gz packages_apps_Browser-0b3165d365baa066465f5ae95d93feeec75a0ef3.tar.bz2 |
Handle restore dialog cancel
Bug: 4860016
Change-Id: I77a61e4bdbdb54a8840b2f5f1e8e20a1b05cb3e2
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/browser/CrashRecoveryHandler.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/browser/CrashRecoveryHandler.java b/src/com/android/browser/CrashRecoveryHandler.java index acc2a30..6d8d921 100644 --- a/src/com/android/browser/CrashRecoveryHandler.java +++ b/src/com/android/browser/CrashRecoveryHandler.java @@ -19,6 +19,7 @@ package com.android.browser; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; +import android.content.DialogInterface.OnCancelListener; import android.content.DialogInterface.OnClickListener; import android.content.Intent; import android.os.Bundle; @@ -141,6 +142,12 @@ public class CrashRecoveryHandler { .setNegativeButton(R.string.recover_no, new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { + dialog.cancel(); + } + }) + .setOnCancelListener(new OnCancelListener() { + @Override + public void onCancel(DialogInterface dialog) { clearState(mController.getActivity()); mController.doStart(null, intent); } |