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

am: 7eef8156ea

Change-Id: Ic4ba2e6fe757648304c90e22eb59b1a4535ef23e
This commit is contained in:
Doris Ling
2018-03-08 05:44:39 +00:00
committed by android-build-merger
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);