From eff6a5bed9ba1d57da207096aff5c74f00ed5cdf Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Tue, 30 Apr 2019 11:54:12 +0200 Subject: [PATCH] don't tint avatars within the drawer menu Signed-off-by: Andy Scherzinger --- .../com/owncloud/android/ui/activity/DrawerActivity.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 4c264cfbbd..741a75d02b 100644 --- a/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java @@ -992,7 +992,11 @@ public abstract class DrawerActivity extends ToolbarActivity MenuItem menuItem = mNavigationView.getMenu().getItem(i); if (menuItem.getIcon() != null) { menuItem.getIcon().clearColorFilter(); - ThemeUtils.tintDrawable(menuItem.getIcon(), ContextCompat.getColor(this, R.color.drawer_menu_icon)); + if(menuItem.getGroupId() != R.id.drawer_menu_accounts + || menuItem.getItemId() == R.id.drawer_menu_account_add + || menuItem.getItemId() == R.id.drawer_menu_account_manage) { + ThemeUtils.tintDrawable(menuItem.getIcon(), ContextCompat.getColor(this, R.color.drawer_menu_icon)); + } menuItem.setTitle(Html.fromHtml("" + menuItem.getTitle() + "")); } }