diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-06-24 18:20:26 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-06-24 18:20:26 +0200 |
commit | 425dc708e51382041edc669e141dfc9c09ded39d (patch) | |
tree | 29c38c5c4dd003ee1aff05910ac7e3a74af3e2ac /src/de | |
parent | 3e0937df7da4d096e9f486622bd53d9a9af60ea3 (diff) | |
download | AntennaPod-425dc708e51382041edc669e141dfc9c09ded39d.zip |
Fixed bug in the mediaplayer seekbar
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/podfetcher/activity/MediaplayerActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/podfetcher/activity/MediaplayerActivity.java b/src/de/podfetcher/activity/MediaplayerActivity.java index dd1926736..859217294 100644 --- a/src/de/podfetcher/activity/MediaplayerActivity.java +++ b/src/de/podfetcher/activity/MediaplayerActivity.java @@ -244,7 +244,7 @@ public class MediaplayerActivity extends SherlockActivity { public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { if (fromUser) { - prog = progress / 100.0f; + prog = progress / ((float) seekBar.getMax()); duration = playbackService.getPlayer().getDuration(); txtvPosition.setText(Converter .getDurationStringLong((int) (prog * duration))); |