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

Edward Wang git at videolan.org
Fri Aug 3 17:56:44 CEST 2012


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

src: Be consistent with desktop VLC in the speed label

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

 vlc-android/src/org/videolan/vlc/gui/SpeedSelectorDialog.java      |    4 ++--
 .../src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java        |    2 +-
 2 files changed, 3 insertions(+), 3 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..2e664ec 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() {
 
@@ -54,7 +54,7 @@ public class SpeedSelectorDialog extends Dialog {
             public void onProgressChanged(SeekBar seekBar, int progress,
                     boolean fromUser) {
                 float rate = (float) Math.pow((double)4, ((double)progress/(double)100) - (double)1);
-                speedLabel.setText(String.format("%.2fx", rate));
+                speedLabel.setText(String.format(java.util.Locale.US, "%.2fx", rate));
                 LibVLC.getExistingInstance().setRate(rate);
             }
 
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