Merge "Fix layout height for suggestion tile." into pi-dev

This commit is contained in:
TreeHugger Robot
2018-03-08 05:32:25 +00:00
committed by Android (Google) Code Review
4 changed files with 34 additions and 4 deletions

View File

@@ -119,7 +119,7 @@ public class SuggestionAdapter extends RecyclerView.Adapter<DashboardItemHolder>
}
final Icon icon = suggestion.getIcon();
final Drawable drawable = mCache.getIcon(icon);
if (drawable != null) {
if (drawable != null && (suggestion.getFlags() & Suggestion.FLAG_ICON_TINTABLE) != 0) {
drawable.setTint(Utils.getColorAccent(mContext));
}
holder.icon.setImageDrawable(drawable);