1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-18 14:47:46 +01:00

VESC: fixed crash on loading saved integer

This commit is contained in:
Daniel Dakhno 2022-02-14 19:12:44 +01:00
parent 9e8b7373fa
commit 93fc2c3b61

View File

@ -72,8 +72,8 @@ public class VescControlActivity extends AbstractGBActivity {
} }
private void restoreValues(){ private void restoreValues(){
rpmEditText.setText(preferences.getInt(PREFS_KEY_LAST_RPM, 0)); rpmEditText.setText(String.valueOf(preferences.getInt(PREFS_KEY_LAST_RPM, 0)));
breakCurrentEditText.setText(preferences.getInt(PREFS_KEY_LAST_BREAK_CURRENT, 0)); breakCurrentEditText.setText(String.valueOf(preferences.getInt(PREFS_KEY_LAST_BREAK_CURRENT, 0)));
} }
@Override @Override