mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Enabled Outlook alt
This commit is contained in:
parent
ce1e36c65a
commit
8db6109580
3 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue