Revert "Removed OAuth limitations"

This reverts commit 7547e74776.
This commit is contained in:
M66B 2020-05-10 07:44:56 +02:00
parent 26e06bdbf4
commit af7e1b04dc
1 changed files with 10 additions and 8 deletions

View File

@ -168,6 +168,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()