Skip to content

Commit

Permalink
#47 limited category flags count on Products screen to 6
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Mar 20, 2017
1 parent d61e85f commit f8325fb
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ public class ProductCellFactory extends CellFactory<Product, ViewGroup> {
public ViewGroup createEmptyCell(final Context context, ViewGroup parent) {
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

return (ViewGroup) inflater.inflate(R.layout.cell_product, parent, false);
final ViewGroup view = (ViewGroup) inflater.inflate(R.layout.cell_product, parent, false);

final TagFlagContainer categoriesContainer = (TagFlagContainer) view.findViewById(
R.id.cell_product_categories);
categoriesContainer.setMaxCount(6);

return view;
}

@Override
Expand Down

0 comments on commit f8325fb

Please sign in to comment.