Merge "Handle clicks outside of the "checking..." dialog"

This commit is contained in:
Andy Stadler 2010-11-05 17:00:53 -07:00 committed by Android (Google) Code Review
commit aa1259b4cf

View File

@ -673,6 +673,18 @@ public class AccountCheckSettingsFragment extends Fragment {
return dialog;
}
/**
* Listen for cancellation, which can happen from places other than the
* negative button (e.g. touching outside the dialog), and stop the checker
*/
@Override
public void onCancel(DialogInterface dialog) {
AccountCheckSettingsFragment target =
(AccountCheckSettingsFragment) getTargetFragment();
target.onCheckingDialogCancel();
super.onCancel(dialog);
}
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);