From 5b4d25a92abece2ad230299cc2e0c49c4c626c76 Mon Sep 17 00:00:00 2001 From: jacques Date: Sun, 27 Sep 2020 14:15:58 +0200 Subject: [PATCH] Add use of suspended take icon --- .../main/java/net/foucry/pilldroid/MedicamentListActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/net/foucry/pilldroid/MedicamentListActivity.java b/app/src/main/java/net/foucry/pilldroid/MedicamentListActivity.java index 54393c9..e290384 100644 --- a/app/src/main/java/net/foucry/pilldroid/MedicamentListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/MedicamentListActivity.java @@ -478,6 +478,7 @@ public class MedicamentListActivity extends AppCompatActivity { // Test to change background programmatically if (mValues.get(position).getPrise() == 0) { holder.mView.setBackgroundResource(R.drawable.gradient_bg); + holder.mIconView.setImageResource(R.drawable.ic_suspended_pill); } else { int remainingStock = (int) Math.floor(mValues.get(position).getStock() / mValues.get(position).getPrise()); if (remainingStock <= mValues.get(position).getAlertThreshold()) {