Improved error message

pull/168/head
M66B 5 years ago
parent 48a75e068c
commit 3951e656cc

@ -301,8 +301,7 @@ public class FragmentGmail extends FragmentBase {
folders = iservice.getFolders();
if (folders == null)
throw new IllegalArgumentException(
context.getString(R.string.title_setup_no_settings, domain));
throw new IllegalArgumentException(context.getString(R.string.title_setup_no_system_folders));
}
String iprotocol = provider.smtp.starttls ? "smtp" : "smtps";

@ -262,8 +262,7 @@ public class FragmentQuickSetup extends FragmentBase {
folders = iservice.getFolders();
if (folders == null)
throw new IllegalArgumentException(
context.getString(R.string.title_setup_no_settings, dparts[1]));
throw new IllegalArgumentException(context.getString(R.string.title_setup_no_system_folders));
}
String iprotocol = provider.smtp.starttls ? "smtp" : "smtps";

@ -145,6 +145,7 @@
<string name="title_setup_select_account">Select account</string>
<string name="title_setup_instructions">Setup instructions</string>
<string name="title_setup_no_settings">No settings found for domain \'%1$s\'</string>
<string name="title_setup_no_system_folders">Inbox or draft folder not found</string>
<string name="title_setup_quick_success">An account and an identity have successfully been added</string>
<string name="title_setup_quick_failed">You can try to configure an account and an identity below too</string>
<string name="title_setup_manage">Manage</string>

Loading…
Cancel
Save