Bind icon and remote views for Suggestion

Bug: 65065268
Test: robotests
Change-Id: I181a9e092c56f4e45addfc1cde166fb7dac7becd
This commit is contained in:
Fan Zhang
2017-09-26 15:57:25 -07:00
parent a3fd9a16e5
commit e7337b3ec7
3 changed files with 24 additions and 9 deletions

View File

@@ -601,6 +601,9 @@ public class DashboardAdapter extends RecyclerView.Adapter<DashboardAdapter.Dash
}
public Drawable getIcon(Icon icon) {
if (icon == null) {
return null;
}
Drawable drawable = mMap.get(icon);
if (drawable == null) {
drawable = icon.loadDrawable(mContext);