[Android] respect os setting when displaying sys time

Sébastien Toque git at videolan.org
Wed May 29 20:48:44 CEST 2013


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Mon May 27 23:13:02 2013 +0200| [acd0a483524f05463a01579400c75179e2c88dd6] | committer: Sébastien Toque

respect os setting when displaying sys time

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index a42010a..8372345 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -24,6 +24,7 @@ import java.io.File;
 import java.io.UnsupportedEncodingException;
 import java.lang.reflect.Method;
 import java.net.URLDecoder;
+import java.util.Date;
 import java.util.Map;
 
 import org.videolan.libvlc.EventHandler;
@@ -1297,7 +1298,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
         mControls.setSeekable(length > 0);
         mSeekbar.setMax(length);
         mSeekbar.setProgress(time);
-        mSysTime.setText(DateFormat.format("kk:mm", System.currentTimeMillis()));
+        mSysTime.setText(DateFormat.getTimeFormat(this).format(new Date(System.currentTimeMillis())));
         mTime.setText(Util.millisToString(time));
         mLength.setText(mDisplayRemainingTime && length > 0
                 ? "- " + Util.millisToString(length - time)



More information about the Android mailing list