Add use of suspended take icon

This commit is contained in:
jacques 2020-09-27 14:15:58 +02:00
parent f2f2a45136
commit 5b4d25a92a

View file

@ -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()) {