From f2a54f8505d27a2ac43ea520d13daba3e764d9af Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 5 Jun 2012 22:25:07 +0200 Subject: Added functions to convert milliseconds into a more readable String --- src/de/podfetcher/activity/MediaplayerActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/de/podfetcher/activity/MediaplayerActivity.java') 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())); } } -- cgit v1.2.3