diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-01-09 10:52:56 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-01-09 10:52:56 -0800 |
commit | eaa34272cc62237cfd3639e6a17eddd5741e8ce0 (patch) | |
tree | 353270a0408ea8221a8fcf183eeb10903179e6c1 | |
parent | 230c5764c69b2f2242d67559aed1336955d3db5a (diff) | |
download | dsub-eaa34272cc62237cfd3639e6a17eddd5741e8ce0.tar.gz dsub-eaa34272cc62237cfd3639e6a17eddd5741e8ce0.tar.bz2 dsub-eaa34272cc62237cfd3639e6a17eddd5741e8ce0.zip |
Better fix for the issue now that I understand why
-rw-r--r-- | src/github/daneren2005/dsub/fragments/NowPlayingFragment.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java b/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java index b3d0c845..06c88863 100644 --- a/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java +++ b/src/github/daneren2005/dsub/fragments/NowPlayingFragment.java @@ -1012,7 +1012,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis if(fromUser) {
int length = getMinutes(progress);
lengthBox.setText(Util.formatDuration(length));
- seekBar.setProgress(progress + 1);
+ seekBar.setProgress(progress);
}
}
@@ -1024,7 +1024,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis public void onStopTrackingTouch(SeekBar seekBar) {
}
});
- lengthBar.setProgress(length);
+ lengthBar.setProgress(length - 1);
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setTitle(R.string.menu_set_timer)
@@ -1032,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() - 1);
+ int length = getMinutes(lengthBar.getProgress());
SharedPreferences.Editor editor = prefs.edit();
editor.putString(Constants.PREFERENCES_KEY_SLEEP_TIMER_DURATION, Integer.toString(length));
|