|
|
@ -167,10 +167,11 @@ public class FragmentSetup extends FragmentBase {
|
|
|
|
|
|
|
|
|
|
|
|
int order = 1;
|
|
|
|
int order = 1;
|
|
|
|
popupMenu.getMenu().add(Menu.NONE, R.string.title_setup_gmail, order++, R.string.title_setup_gmail);
|
|
|
|
popupMenu.getMenu().add(Menu.NONE, R.string.title_setup_gmail, order++, R.string.title_setup_gmail);
|
|
|
|
|
|
|
|
popupMenu.getMenu().add(Menu.NONE, R.string.title_setup_outlook, order++, R.string.title_setup_outlook);
|
|
|
|
|
|
|
|
|
|
|
|
if (Helper.hasValidFingerprint(getContext()) || BuildConfig.DEBUG)
|
|
|
|
if (Helper.hasValidFingerprint(getContext()) || BuildConfig.DEBUG)
|
|
|
|
for (EmailProvider provider : EmailProvider.loadProfiles(getContext()))
|
|
|
|
for (EmailProvider provider : EmailProvider.loadProfiles(getContext()))
|
|
|
|
if (provider.oauth != null && (provider.oauth.enabled || BuildConfig.DEBUG))
|
|
|
|
if (provider.oauth != null && provider.oauth.enabled)
|
|
|
|
popupMenu.getMenu()
|
|
|
|
popupMenu.getMenu()
|
|
|
|
.add(Menu.NONE, -1, order++, getString(R.string.title_setup_oauth, provider.name))
|
|
|
|
.add(Menu.NONE, -1, order++, getString(R.string.title_setup_oauth, provider.name))
|
|
|
|
.setIntent(new Intent(ActivitySetup.ACTION_QUICK_OAUTH)
|
|
|
|
.setIntent(new Intent(ActivitySetup.ACTION_QUICK_OAUTH)
|
|
|
@ -195,6 +196,7 @@ public class FragmentSetup extends FragmentBase {
|
|
|
|
case R.string.title_setup_activesync:
|
|
|
|
case R.string.title_setup_activesync:
|
|
|
|
Helper.viewFAQ(getContext(), 133);
|
|
|
|
Helper.viewFAQ(getContext(), 133);
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
|
|
|
|
case R.string.title_setup_outlook:
|
|
|
|
case R.string.title_setup_other:
|
|
|
|
case R.string.title_setup_other:
|
|
|
|
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_QUICK_SETUP));
|
|
|
|
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_QUICK_SETUP));
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|