Print speed according to locale

This commit is contained in:
Martin Fietz 2016-03-03 20:21:42 +01:00
parent 57489a8066
commit 632901900b
1 changed files with 3 additions and 1 deletions

View File

@ -879,7 +879,9 @@ public abstract class MediaplayerActivity extends AppCompatActivity implements O
private void updateButPlaybackSpeed() {
if (controller != null && butPlaybackSpeed != null) {
butPlaybackSpeed.setText(UserPreferences.getPlaybackSpeed() + "x");
float speed = Float.valueOf(UserPreferences.getPlaybackSpeed());
String speedStr = String.format("%.2fx", speed);
butPlaybackSpeed.setText(speedStr);
}
}