From d1eef1485e8d86bc6a29158494b18026cd262757 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Wed, 22 Mar 2017 23:15:16 -0400 Subject: [PATCH] close AccountSetup activity immediately after cancellation, fixes #2425 --- .../com/fsck/k9/activity/setup/AccountSetupCheckSettings.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/k9mail/src/main/java/com/fsck/k9/activity/setup/AccountSetupCheckSettings.java b/k9mail/src/main/java/com/fsck/k9/activity/setup/AccountSetupCheckSettings.java index 8cf1b2058..3c363675b 100644 --- a/k9mail/src/main/java/com/fsck/k9/activity/setup/AccountSetupCheckSettings.java +++ b/k9mail/src/main/java/com/fsck/k9/activity/setup/AccountSetupCheckSettings.java @@ -302,6 +302,8 @@ public class AccountSetupCheckSettings extends K9Activity implements OnClickList private void onCancel() { mCanceled = true; setMessage(R.string.account_setup_check_settings_canceling_msg); + setResult(RESULT_CANCELED); + finish(); } public void onClick(View v) {