From f489711bbef982832622ed6b1154b03de99abcc1 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Tue, 26 Sep 2017 09:57:08 +0200 Subject: [PATCH] tint external icons --- .../com/owncloud/android/ui/activity/DrawerActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java b/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java index 5d4f76c09a..a310bc9b3d 100644 --- a/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java @@ -1003,16 +1003,18 @@ public abstract class DrawerActivity extends ToolbarActivity implements DisplayU float density = getResources().getDisplayMetrics().density; final int size = Math.round(24 * density); + int greyColor = getResources().getColor(R.color.standard_grey); for (final ExternalLink link : externalLinksProvider.getExternalLink(ExternalLinkType.LINK)) { - int id=mNavigationView.getMenu().add(R.id.drawer_menu_external_links, MENU_ITEM_EXTERNAL_LINK, + int id = mNavigationView.getMenu().add(R.id.drawer_menu_external_links, MENU_ITEM_EXTERNAL_LINK, MENU_ORDER_EXTERNAL_LINKS, link.name).setCheckable(true).getItemId(); MenuSimpleTarget target = new MenuSimpleTarget(id) { @Override public void onResourceReady(Drawable resource, GlideAnimation glideAnimation) { - mNavigationView.getMenu().findItem(getIdMenuItem()).setIcon(resource); + mNavigationView.getMenu().findItem(getIdMenuItem()).setIcon( + ThemeUtils.tintDrawable(resource, greyColor)); } @Override