[Android] src: Be consistent with desktop VLC in the speed label

Edward Wang git at videolan.org
Fri Aug 3 17:55:13 CEST 2012


android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Fri Aug  3 11:55:12 2012 -0400| [f30a043f79e036fc4bb9d7ae2cd0a3e94f28839e] | committer: Edward Wang

src: Be consistent with desktop VLC in the speed label

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=f30a043f79e036fc4bb9d7ae2cd0a3e94f28839e
---

 vlc-android/src/org/videolan/vlc/gui/SpeedSelectorDialog.java       |    2 +-
 vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/SpeedSelectorDialog.java b/vlc-android/src/org/videolan/vlc/gui/SpeedSelectorDialog.java
index 5b11972..53d92b9 100644
--- a/vlc-android/src/org/videolan/vlc/gui/SpeedSelectorDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/SpeedSelectorDialog.java
@@ -46,7 +46,7 @@ public class SpeedSelectorDialog extends Dialog {
         final TextView speedLabel = (TextView)findViewById(R.id.current_speed);
         Button resetButton = (Button)findViewById(R.id.reset);
 
-        speedLabel.setText(String.format("%.2fx", LibVLC.getExistingInstance().getRate()));
+        speedLabel.setText(String.format(java.util.Locale.US, "%.2fx", LibVLC.getExistingInstance().getRate()));
         seekbar.setProgress( (int)( ((Math.log(LibVLC.getExistingInstance().getRate()) / Math.log(4)) + 1) * 100) );
         seekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
 
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java
index 479b464..61054af 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java
@@ -184,7 +184,7 @@ public class AudioPlayerActivity extends Activity implements IAudioPlayer {
             mPrevious.setVisibility(ImageButton.VISIBLE);
         else
             mPrevious.setVisibility(ImageButton.INVISIBLE);
-        mSpeed.setText(String.format("%.2fx", LibVLC.getExistingInstance().getRate()));
+        mSpeed.setText(String.format(java.util.Locale.US, "%.2fx", LibVLC.getExistingInstance().getRate()));
         mTimeline.setOnSeekBarChangeListener(mTimelineListner);
     }
 



More information about the Android mailing list