1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-01 11:33:29 +02:00

fix measurement system summary value not being updated

This commit is contained in:
Andreas Shimokawa 2017-09-30 23:36:20 +02:00
parent 486596b1a8
commit 6f358ff722

View File

@ -184,6 +184,7 @@ public class SettingsActivity extends AbstractSettingsActivity {
GBApplication.deviceService().onSendConfiguration(PREF_MEASUREMENT_SYSTEM); GBApplication.deviceService().onSendConfiguration(PREF_MEASUREMENT_SYSTEM);
} }
}); });
preference.setSummary(newVal.toString());
return true; return true;
} }
}); });
@ -294,7 +295,6 @@ public class SettingsActivity extends AbstractSettingsActivity {
@Override @Override
protected String[] getPreferenceKeysWithSummary() { protected String[] getPreferenceKeysWithSummary() {
return new String[]{ return new String[]{
"measurement_system",
"pebble_emu_addr", "pebble_emu_addr",
"pebble_emu_port", "pebble_emu_port",
"pebble_reconnect_attempts", "pebble_reconnect_attempts",