This commit is contained in:
B. Petersen
2019-02-21 16:21:57 +01:00
parent 83f86b8edf
commit f51bb4dde5
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -268,6 +268,8 @@
<string name="login_smtp_port">SMTP port</string>
<string name="login_smtp_security">SMTP Security</string>
<string name="login_auth_method">Authorization method</string>
<string name="login_info_oauth2_title">Continue with simplified setup?</string>
<string name="login_info_oauth2_text">The entered e-mail-address supports a simplified setup (OAuth2).\n\nIn the next step, please allow Delta Chat to act as your Chat with E-Mail app.\n\nDelta Chat has no servers, your data stays on your device!</string>
<string name="login_info_gmail_text">For GMail Accounts you need to create an App-Password if you have 2FA enabled. If this setting is not available, you need to enable Less Secure Apps.</string>
<string name="login_error_mail">Please enter a valid email address</string>
<string name="login_error_server">Please enter a valid server / IP address</string>
@@ -216,8 +216,8 @@ public class RegistrationActivity extends BaseActionBarActivity implements DcEve
String oauth2url = DcHelper.getContext(this).getOauth2Url(email, redirectUrl);
if (!TextUtils.isEmpty(oauth2url)) {
new AlertDialog.Builder(this)
.setTitle("Continue with simplified setup?")
.setMessage("This e-mail-address supports a simplified setup process (OAuth2).\n\nFor this purpose, the browser is opened in the next step. There you can grant access to Delta Chat.") // TODO: localisation
.setTitle(R.string.login_info_oauth2_title)
.setMessage(R.string.login_info_oauth2_text)
.setNegativeButton(R.string.cancel, (dialog, which)->{
if(isGmail(email)) {
showGmailNoOauth2Hint();