1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-27 16:33:47 +00:00

Disabled OAuth for Play store installs

This commit is contained in:
M66B 2019-12-22 11:21:30 +01:00
parent b6008091fb
commit d92187560a

View file

@ -169,6 +169,8 @@ public class FragmentSetup extends FragmentBase {
int order = 1;
popupMenu.getMenu().add(Menu.NONE, R.string.title_setup_gmail, order++, R.string.title_setup_gmail);
if (!Helper.isPlayStoreInstall() &&
(Helper.hasValidFingerprint(getContext()) || BuildConfig.DEBUG))
for (EmailProvider provider : EmailProvider.loadProfiles(getContext()))
if (provider.oauth != null && (provider.oauth.enabled || BuildConfig.DEBUG))
popupMenu.getMenu()