Enabled Outlook alt

This commit is contained in:
M66B 2023-02-02 08:51:23 +01:00
parent ce1e36c65a
commit 8db6109580
3 changed files with 7 additions and 2 deletions

View File

@ -82,6 +82,7 @@ public class EmailProvider implements Parcelable {
public String description;
public boolean debug;
public boolean enabled;
public boolean alt;
public List<String> domain;
public List<String> mx;
public int order;
@ -235,6 +236,7 @@ public class EmailProvider implements Parcelable {
provider.debug = getAttributeBooleanValue(xml, "debug", false);
provider.enabled = getAttributeBooleanValue(xml, "enabled", true);
provider.alt = getAttributeBooleanValue(xml, "alt", false);
String domain = xml.getAttributeValue(null, "domain");
if (domain != null)

View File

@ -314,8 +314,11 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
provider.oauth.enabled &&
!TextUtils.isEmpty(provider.oauth.clientId)) {
String title = getString(R.string.title_setup_oauth, provider.description);
SpannableString ss = new SpannableString(title);
if (provider.alt)
ss.setSpan(new RelativeSizeSpan(HtmlHelper.FONT_SMALL), 0, ss.length(), 0);
MenuItem item = menu
.add(Menu.FIRST, -1, order++, title)
.add(Menu.FIRST, -1, order++, ss)
.setIntent(new Intent(ActivitySetup.ACTION_QUICK_OAUTH)
.putExtra("id", provider.id)
.putExtra("name", provider.description)

View File

@ -187,9 +187,9 @@
</provider>
<provider
name="Outlook"
alt="true"
debug="true"
description="Outlook/Office 365 (alt)"
enabled="false"
id="outlook"
link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq14"
maxtls="1.2"