Merge pull request #1681 from tanja3981/improvement_pumpBatteryAge
Fixed: Use bage instead of pgage variable for coloring the battery age in careportal.
This commit is contained in:
commit
f9904d15d8
|
@ -229,8 +229,8 @@ public class CareportalFragment extends SubscriberFragment implements View.OnCli
|
||||||
double sageWarn = nsSettings.getExtendedWarnValue("sage", "warn", 164);
|
double sageWarn = nsSettings.getExtendedWarnValue("sage", "warn", 164);
|
||||||
handleAge(sage, CareportalEvent.SENSORCHANGE, sageWarn, sageUrgent);
|
handleAge(sage, CareportalEvent.SENSORCHANGE, sageWarn, sageUrgent);
|
||||||
|
|
||||||
double pbageUrgent = nsSettings.getExtendedWarnValue("pgage", "urgent", 360);
|
double pbageUrgent = nsSettings.getExtendedWarnValue("bage", "urgent", 360);
|
||||||
double pbageWarn = nsSettings.getExtendedWarnValue("pgage", "warn", 240);
|
double pbageWarn = nsSettings.getExtendedWarnValue("bage", "warn", 240);
|
||||||
handleAge(pbage, CareportalEvent.PUMPBATTERYCHANGE, pbageWarn, pbageUrgent);
|
handleAge(pbage, CareportalEvent.PUMPBATTERYCHANGE, pbageWarn, pbageUrgent);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue