From 9bc9f7cd3aaa510a1866cf2869eb2cc3476ec8dd Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 8 May 2021 07:34:38 +0200 Subject: [PATCH] Added Google logo --- .../java/eu/faircode/email/FragmentSetup.java | 9 ++++- app/src/main/res/drawable/provider_google.xml | 34 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/drawable/provider_google.xml diff --git a/app/src/main/java/eu/faircode/email/FragmentSetup.java b/app/src/main/java/eu/faircode/email/FragmentSetup.java index 29c57c949d..5ea0888d3a 100644 --- a/app/src/main/java/eu/faircode/email/FragmentSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentSetup.java @@ -181,8 +181,15 @@ public class FragmentSetup extends FragmentBase { PopupMenuLifecycle popupMenu = new PopupMenuLifecycle(context, getViewLifecycleOwner(), btnQuick); Menu menu = popupMenu.getMenu(); + // Product icons https://about.google/brand-resource-center/brand-elements/ + // You may use small depictions of our Google product icons for educational or informational purposes + // to indicate that your product or service integrates with, is designed for, or is related to a Google product or service + // – but you can’t imply affiliation with or endorsement from Google. + // https://commons.wikimedia.org/wiki/File:Google_%22G%22_Logo.svg + int order = 1; - menu.add(Menu.NONE, R.string.title_setup_gmail, order++, R.string.title_setup_gmail); + menu.add(Menu.NONE, R.string.title_setup_gmail, order++, R.string.title_setup_gmail) + .setIcon(R.drawable.provider_google); for (EmailProvider provider : EmailProvider.loadProfiles(context)) if (provider.oauth != null && diff --git a/app/src/main/res/drawable/provider_google.xml b/app/src/main/res/drawable/provider_google.xml new file mode 100644 index 0000000000..ffae8679b5 --- /dev/null +++ b/app/src/main/res/drawable/provider_google.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + +