Some ui polish.

This commit is contained in:
Johannes Mockenhaupt 2017-10-19 02:45:29 +02:00
parent 723388acdf
commit 64c3d452a8
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -131,7 +131,7 @@ public class ComboFragment extends Fragment implements View.OnClickListener {
pumpstateBatteryText.setTextColor(Color.RED); pumpstateBatteryText.setTextColor(Color.RED);
} else if(ps.batteryState == PumpState.LOW){ } else if(ps.batteryState == PumpState.LOW){
pumpstateBatteryText.setText("{fa-battery-quarter}"); pumpstateBatteryText.setText("{fa-battery-quarter}");
pumpstateBatteryText.setTextColor(Color.WHITE); pumpstateBatteryText.setTextColor(Color.YELLOW);
} else { } else {
pumpstateBatteryText.setText("{fa-battery-full}"); pumpstateBatteryText.setText("{fa-battery-full}");
pumpstateBatteryText.setTextColor(Color.WHITE); pumpstateBatteryText.setTextColor(Color.WHITE);
@ -148,7 +148,7 @@ public class ComboFragment extends Fragment implements View.OnClickListener {
break; break;
} }
int reservoirLevel = plugin.getPump().history.reservoirLevel; int reservoirLevel = plugin.getPump().history.reservoirLevel;
insulinstateText.setText(reservoirLevel == - 1 ? "" : "" + reservoirLevel); insulinstateText.setText(reservoirLevel == - 1 ? "" : "" + reservoirLevel + " U");
} }
CommandResult lastCmdResult1 = plugin.getPump().lastCmdResult; CommandResult lastCmdResult1 = plugin.getPump().lastCmdResult;