mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Add use of suspended take icon
This commit is contained in:
parent
f2f2a45136
commit
5b4d25a92a
1 changed files with 1 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue