Remove unnecessary conversion

This commit is contained in:
Dima-1 2020-07-02 10:30:52 +03:00
parent 6ceb385050
commit 883550a298

View file

@ -135,7 +135,7 @@ public class VehicleParametersBottomSheet extends BasePreferenceBottomSheet {
selectedItem = item;
currentValue = preference.getValueFromEntries(selectedItem);
String currentValueStr = currentValue == 0.0f
? "" : String.valueOf(df.format(currentValue + 0.01f));
? "" : df.format(currentValue + 0.01f);
text.setText(currentValueStr);
if (text.hasFocus()) {
text.setSelection(text.getText().length());