mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-23 16:53:04 +02:00
Evaluate gauge view value in edit mode as well
Otherwise the gauge view will show "Can't evaluate the value" if the measurement view is opened in edit mode.
This commit is contained in:
@@ -294,7 +294,7 @@ public abstract class MeasurementView extends TableLayout {
|
||||
|
||||
try{
|
||||
Float floatValue = Float.parseFloat(value);
|
||||
if (measurementMode == VIEW) {
|
||||
if (measurementMode == VIEW || measurementMode == EDIT) {
|
||||
evaluate(floatValue);
|
||||
}
|
||||
valueView.setText(String.format("%.2f ", floatValue) + getUnit());
|
||||
|
Reference in New Issue
Block a user