diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-01-09 10:49:36 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-01-09 10:49:36 -0800 |
commit | 230c5764c69b2f2242d67559aed1336955d3db5a (patch) | |
tree | 0325efcf8c2b6b69c4298b3bccfcd4ba10a6979c /src | |
parent | 7f63410ff21dd2f7655365b899260fcbb76fbcee (diff) | |
download | dsub-230c5764c69b2f2242d67559aed1336955d3db5a.tar.gz dsub-230c5764c69b2f2242d67559aed1336955d3db5a.tar.bz2 dsub-230c5764c69b2f2242d67559aed1336955d3db5a.zip |
Fix incrementing randomly
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/NowPlayingFragment.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java b/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java index 942b0613..b3d0c845 100644 --- a/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java +++ b/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java @@ -1012,6 +1012,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis if(fromUser) {
int length = getMinutes(progress);
lengthBox.setText(Util.formatDuration(length));
+ seekBar.setProgress(progress + 1);
}
}
@@ -1031,7 +1032,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis .setPositiveButton(R.string.common_ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
- int length = getMinutes(lengthBar.getProgress());
+ int length = getMinutes(lengthBar.getProgress() - 1);
SharedPreferences.Editor editor = prefs.edit();
editor.putString(Constants.PREFERENCES_KEY_SLEEP_TIMER_DURATION, Integer.toString(length));
|