Merge "Remove Imap2 warning" into jb-ub-mail
This commit is contained in:
commit
46656fceaa
@ -543,23 +543,7 @@ public class AccountSetupBasics extends AccountSetupActivity
|
|||||||
String domain = emailParts[1].trim();
|
String domain = emailParts[1].trim();
|
||||||
mProvider = AccountSettingsUtils.findProviderForDomain(this, domain);
|
mProvider = AccountSettingsUtils.findProviderForDomain(this, domain);
|
||||||
if (mProvider != null) {
|
if (mProvider != null) {
|
||||||
|
|
||||||
// STOPSHIP Warn user about Imap2, if necessary
|
|
||||||
mProvider.expandTemplates(email);
|
mProvider.expandTemplates(email);
|
||||||
try {
|
|
||||||
URI uri = new URI(mProvider.incomingUri);
|
|
||||||
String scheme = uri.getScheme();
|
|
||||||
String[] schemeParts = scheme.split("\\+");
|
|
||||||
String protocol = schemeParts[0];
|
|
||||||
if (HostAuth.LEGACY_SCHEME_IMAP.equals(protocol) &&
|
|
||||||
EmailServiceUtils.isServiceAvailable(this, "imap2")) {
|
|
||||||
mProvider.note = "This account will use the new \"Push Imap\" sync adapter." +
|
|
||||||
" To use the legacy adapter, please cancel and use Manual Setup.";
|
|
||||||
}
|
|
||||||
} catch (URISyntaxException e) {
|
|
||||||
// Ignore
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mProvider.note != null) {
|
if (mProvider.note != null) {
|
||||||
NoteDialogFragment dialogFragment =
|
NoteDialogFragment dialogFragment =
|
||||||
NoteDialogFragment.newInstance(mProvider.note);
|
NoteDialogFragment.newInstance(mProvider.note);
|
||||||
|
Loading…
Reference in New Issue
Block a user