From e24b3429dc9a93ff45d35c90a76ccbfd1ed19637 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 19 Apr 2009 07:20:38 +0000 Subject: [PATCH] Allow the user to continue setup, even if their server settings don't work --- res/values/strings.xml | 1 + .../activity/setup/AccountSetupCheckSettings.java | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/res/values/strings.xml b/res/values/strings.xml index f5b598da6..f3e44bcc9 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -336,6 +336,7 @@ Welcome to K-9 Mail setup. K-9 is an open source email client for Android based Cannot safely connect to server.\n(%s) Cannot connect to server.\n(%s) Edit details + Continue General settings Default account diff --git a/src/com/android/email/activity/setup/AccountSetupCheckSettings.java b/src/com/android/email/activity/setup/AccountSetupCheckSettings.java index 44c093274..41676bef5 100644 --- a/src/com/android/email/activity/setup/AccountSetupCheckSettings.java +++ b/src/com/android/email/activity/setup/AccountSetupCheckSettings.java @@ -177,6 +177,16 @@ public class AccountSetupCheckSettings extends Activity implements OnClickListen .setTitle(getString(R.string.account_setup_failed_dlg_title)) .setMessage(getString(msgResId, args)) .setCancelable(true) + .setNegativeButton( + getString(R.string.account_setup_failed_dlg_continue_action), + + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + mCanceled=false; + setResult(RESULT_OK); + finish(); + } + }) .setPositiveButton( getString(R.string.account_setup_failed_dlg_edit_details_action), new DialogInterface.OnClickListener() {