Commit 0b9fb476 authored by Nastuzzi Samy's avatar Nastuzzi Samy
Browse files

List info bug

Do not show filters if info is used
parent 0b8c8f1b
...@@ -56,16 +56,18 @@ public class ListAdapater extends ArticlesAdapter { ...@@ -56,16 +56,18 @@ public class ListAdapater extends ArticlesAdapter {
TextView priceText = view.findViewById(R.id.text_price); TextView priceText = view.findViewById(R.id.text_price);
priceText.setText((article.has("quantity") ? Integer.toString(article.get("quantity").intValue()) + "x " : "") + String.format("%.2f", new Float(articleList.get(position).get("price").intValue()) / 100.00f) + "€"); priceText.setText((article.has("quantity") ? Integer.toString(article.get("quantity").intValue()) + "x " : "") + String.format("%.2f", new Float(articleList.get(position).get("price").intValue()) / 100.00f) + "€");
ImageView imageCotisant = view.findViewById(R.id.image_cotisant);
ImageView image18 = view.findViewById(R.id.image_18);
if (article.has("info")) { if (article.has("info")) {
TextView infoText = view.findViewById(R.id.text_info); TextView infoText = view.findViewById(R.id.text_info);
infoText.setText(article.get("info").textValue()); infoText.setText(article.get("info").textValue());
}
else {
ImageView imageCotisant = view.findViewById(R.id.image_cotisant);
ImageView image18 = view.findViewById(R.id.image_18);
setInfos(article, imageCotisant, image18); imageCotisant.setVisibility(View.GONE);
image18.setVisibility(View.GONE);
} }
else
setInfos(article, imageCotisant, image18);
setImage(imageView, article.get("image_url").textValue(), position); setImage(imageView, article.get("image_url").textValue(), position);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment