mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-14 04:53:22 +02:00
Combined Outlook/Office 365
This commit is contained in:
@@ -75,7 +75,6 @@ import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.mail.AuthenticationFailedException;
|
||||
@@ -104,7 +103,6 @@ public class FragmentOAuth extends FragmentBase {
|
||||
private TextView tvError;
|
||||
private TextView tvGmailDraftsHint;
|
||||
private TextView tvOfficeAuthHint;
|
||||
private TextView tvOfficeOutlookHint;
|
||||
private Button btnSupport;
|
||||
|
||||
private Group grpError;
|
||||
@@ -143,7 +141,6 @@ public class FragmentOAuth extends FragmentBase {
|
||||
tvError = view.findViewById(R.id.tvError);
|
||||
tvGmailDraftsHint = view.findViewById(R.id.tvGmailDraftsHint);
|
||||
tvOfficeAuthHint = view.findViewById(R.id.tvOfficeAuthHint);
|
||||
tvOfficeOutlookHint = view.findViewById(R.id.tvOfficeOutlookHint);
|
||||
btnSupport = view.findViewById(R.id.btnSupport);
|
||||
|
||||
grpError = view.findViewById(R.id.grpError);
|
||||
@@ -688,13 +685,6 @@ public class FragmentOAuth extends FragmentBase {
|
||||
if ("office365".equals(id)) {
|
||||
if (ex instanceof AuthenticationFailedException)
|
||||
tvOfficeAuthHint.setVisibility(View.VISIBLE);
|
||||
|
||||
String e = etEmail.getText().toString().toLowerCase(Locale.ROOT);
|
||||
if (e.contains("@outlook") ||
|
||||
e.contains("@live") ||
|
||||
e.contains("@hotmail") ||
|
||||
e.contains("@msn"))
|
||||
tvOfficeOutlookHint.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
etName.setEnabled(true);
|
||||
@@ -715,6 +705,5 @@ public class FragmentOAuth extends FragmentBase {
|
||||
grpError.setVisibility(View.GONE);
|
||||
tvGmailDraftsHint.setVisibility(View.GONE);
|
||||
tvOfficeAuthHint.setVisibility(View.GONE);
|
||||
tvOfficeOutlookHint.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user