1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-20 07:21:40 +02:00

Add summary text to estimate preference

This commit is contained in:
Erik Johansson
2018-03-27 22:27:25 +02:00
parent 002e7208b4
commit ba89ffdfc0
3 changed files with 3 additions and 0 deletions

View File

@@ -471,6 +471,7 @@ public abstract class FloatMeasurementView extends MeasurementView {
final CheckBoxPreference estimate = new CheckBoxPreference(screen.getContext());
estimate.setKey(settings.getEstimationEnabledKey());
estimate.setTitle(R.string.label_estimate_measurement);
estimate.setSummary(R.string.label_estimate_measurement_summary);
estimate.setPersistent(true);
estimate.setDefaultValue(settings.isEstimationEnabled());
screen.addPreference(estimate);

View File

@@ -189,4 +189,5 @@
<string name="label_overview_graph">Översiktsgraf</string>
<string name="label_percent">Procent</string>
<string name="label_estimated">Estimerat</string>
<string name="label_estimate_measurement_summary">Baserat på vikt, längd, ålder, kön, m.m.</string>
</resources>

View File

@@ -222,4 +222,5 @@
<string name="label_overview_graph">Overview graph</string>
<string name="label_percent">Percent</string>
<string name="label_estimated">Estimated</string>
<string name="label_estimate_measurement_summary">Based on weight, height, age, gender, etc.</string>
</resources>