mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Hide Gmail web OAuth stub
This commit is contained in:
parent
f52bdae2b3
commit
ae50c6a70e
1 changed files with 3 additions and 1 deletions
|
@ -42,6 +42,7 @@ import android.os.Build;
|
|||
import android.os.Bundle;
|
||||
import android.provider.Settings;
|
||||
import android.text.SpannableString;
|
||||
import android.text.TextUtils;
|
||||
import android.text.style.RelativeSizeSpan;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.Menu;
|
||||
|
@ -259,7 +260,8 @@ public class FragmentSetup extends FragmentBase {
|
|||
|
||||
for (EmailProvider provider : EmailProvider.loadProfiles(context))
|
||||
if (provider.oauth != null &&
|
||||
(provider.oauth.enabled || BuildConfig.DEBUG)) {
|
||||
(provider.oauth.enabled || BuildConfig.DEBUG) &&
|
||||
!TextUtils.isEmpty(provider.oauth.clientId)) {
|
||||
item = menu
|
||||
.add(Menu.FIRST, -1, order++, getString(R.string.title_setup_oauth, provider.description))
|
||||
.setIntent(new Intent(ActivitySetup.ACTION_QUICK_OAUTH)
|
||||
|
|
Loading…
Reference in a new issue