1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 02:37:16 +00:00

Added Outlook/Hotmail/Live to quick setup wizard

This commit is contained in:
M66B 2023-02-12 14:32:08 +01:00
parent 132ebfbceb
commit a8d0419a07
2 changed files with 6 additions and 1 deletions

View file

@ -330,6 +330,9 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
int resid = res.getIdentifier("provider_" + provider.id, "drawable", pkg);
if (resid != 0)
item.setIcon(resid);
if ("outlook".equals(provider.id))
menu.add(Menu.FIRST, R.string.title_setup_outlook, order++, R.string.title_setup_outlook);
}
menu.add(Menu.NONE, R.string.title_setup_other, order++, R.string.title_setup_other)
@ -374,7 +377,8 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
.setNegativeButton(android.R.string.cancel, null)
.show();
return true;
} else if (itemId == R.string.title_setup_other) {
} else if (itemId == R.string.title_setup_other ||
itemId == R.string.title_setup_outlook) {
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_QUICK_SETUP));
return true;
} else if (itemId == R.string.title_setup_classic) {

View file

@ -217,6 +217,7 @@
<string name="title_setup_oauth" translatable="false">%1$s (OAuth)</string>
<string name="title_setup_android" translatable="false">%1$s (Android)</string>
<string name="title_setup_google_sign_in">Sign in with Google</string>
<string name="title_setup_outlook" translatable="false">Outlook/Hotmail/Live</string>
<string name="title_setup_other">Other provider</string>
<string name="title_setup_inbound">Incoming email only (email cannot be sent!)</string>
<string name="title_setup_pop3">POP3 account</string>