1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-09 10:16:44 +02:00

set maximum fat percentage to 80%

on edit mode show last value
This commit is contained in:
OliE
2017-04-30 18:42:21 +02:00
parent 91abd9dcd0
commit b7befd8aa8
2 changed files with 3 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ public class FatMeasurementView extends MeasurementView {
@Override
public float getMaxValue() {
return 40;
return 80;
}
}

View File

@@ -312,6 +312,8 @@ public abstract class MeasurementView extends TableLayout {
input.setInputType(getInputType());
input.setHint(getHintText());
input.setText(value);
input.setSelection(value.length());
builder.setView(input);
builder.setPositiveButton(getResources().getString(R.string.label_ok), null);