diff options
author | daniel <daniel@danielpc> | 2012-06-05 22:25:07 +0200 |
---|---|---|
committer | daniel <daniel@danielpc> | 2012-06-05 22:25:07 +0200 |
commit | f2a54f8505d27a2ac43ea520d13daba3e764d9af (patch) | |
tree | 255c318ca48038bd2c7585fc4008a43bf3af9406 /src/de/podfetcher/activity/MediaplayerActivity.java | |
parent | baca017e2ad47997660bd2ca9d38581b71dcd615 (diff) | |
download | AntennaPod-f2a54f8505d27a2ac43ea520d13daba3e764d9af.zip |
Added functions to convert milliseconds into a more readable String
Diffstat (limited to 'src/de/podfetcher/activity/MediaplayerActivity.java')
-rw-r--r-- | src/de/podfetcher/activity/MediaplayerActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/de/podfetcher/activity/MediaplayerActivity.java b/src/de/podfetcher/activity/MediaplayerActivity.java index 162615d97..55cc2b1e7 100644 --- a/src/de/podfetcher/activity/MediaplayerActivity.java +++ b/src/de/podfetcher/activity/MediaplayerActivity.java @@ -117,7 +117,7 @@ public class MediaplayerActivity extends SherlockActivity { protected void onProgressUpdate(Long... values) { super.onProgressUpdate(values); txtvPosition.setText( - Integer.toString(playbackService.getPlayer().getCurrentPosition())); + Converter.getDurationStringLong(playbackService.getPlayer().getCurrentPosition())); } }; @@ -136,8 +136,8 @@ public class MediaplayerActivity extends SherlockActivity { imgvCover.setImageBitmap( media.getItem().getFeed().getImage().getImageBitmap()); - txtvPosition.setText(Integer.toString(player.getCurrentPosition())); - txtvLength.setText(Integer.toString(player.getDuration())); + txtvPosition.setText(Converter.getDurationStringLong((player.getCurrentPosition()))); + txtvLength.setText(Converter.getDurationStringLong(player.getDuration())); } } |