mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-17 18:41:37 +01:00
Chnage status icone by the material design ones
This commit is contained in:
parent
73efb1fbae
commit
d10ea16dac
1 changed files with 4 additions and 4 deletions
|
@ -359,7 +359,7 @@ public class MedicamentListActivity extends AppCompatActivity {
|
||||||
Notification.Builder builder = new Notification.Builder(this);
|
Notification.Builder builder = new Notification.Builder(this);
|
||||||
builder.setContentTitle(getAppName());
|
builder.setContentTitle(getAppName());
|
||||||
builder.setContentText(content);
|
builder.setContentText(content);
|
||||||
builder.setSmallIcon(R.drawable.ic_stat_small_capsule);
|
builder.setSmallIcon(R.drawable.ic_pill);
|
||||||
builder.setLargeIcon(BitmapFactory.decodeResource(getApplicationContext().getResources(),
|
builder.setLargeIcon(BitmapFactory.decodeResource(getApplicationContext().getResources(),
|
||||||
R.mipmap.ic_launcher));
|
R.mipmap.ic_launcher));
|
||||||
return builder.build();
|
return builder.build();
|
||||||
|
@ -422,14 +422,14 @@ public class MedicamentListActivity extends AppCompatActivity {
|
||||||
int remainingStock = (int) Math.floor(mValues.get(position).getStock() / mValues.get(position).getPrise());
|
int remainingStock = (int) Math.floor(mValues.get(position).getStock() / mValues.get(position).getPrise());
|
||||||
if (remainingStock <= mValues.get(position).getAlertThreshold()) {
|
if (remainingStock <= mValues.get(position).getAlertThreshold()) {
|
||||||
holder.mView.setBackgroundResource(R.drawable.gradient_bg_alert);
|
holder.mView.setBackgroundResource(R.drawable.gradient_bg_alert);
|
||||||
holder.mIconView.setImageResource(R.drawable.ic_stock_nok);
|
holder.mIconView.setImageResource(R.drawable.lower_stock);
|
||||||
} else if ((remainingStock > mValues.get(position).getAlertThreshold()) &&
|
} else if ((remainingStock > mValues.get(position).getAlertThreshold()) &&
|
||||||
(remainingStock <= (mValues.get(position).getWarnThreshold()))) {
|
(remainingStock <= (mValues.get(position).getWarnThreshold()))) {
|
||||||
holder.mView.setBackgroundResource(R.drawable.gradient_bg_warning);
|
holder.mView.setBackgroundResource(R.drawable.gradient_bg_warning);
|
||||||
holder.mIconView.setImageResource(R.drawable.ic_stock_waring);
|
holder.mIconView.setImageResource(R.drawable.warning_stock);
|
||||||
} else {
|
} else {
|
||||||
holder.mView.setBackgroundResource(R.drawable.gradient_bg_ok);
|
holder.mView.setBackgroundResource(R.drawable.gradient_bg_ok);
|
||||||
holder.mIconView.setImageResource(R.drawable.ic_stock_ok);
|
holder.mIconView.setImageResource(R.drawable.ok_stock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue