Rewind when skip to previous is pressed
This commit is contained in:
parent
3fa38f8b1b
commit
732bda08a9
|
@ -1210,8 +1210,15 @@ public class PlaybackServiceMediaPlayer implements SharedPreferences.OnSharedPre
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSkipToNext() {
|
public void onSkipToPrevious() {
|
||||||
Log.d(TAG, "onSkipToNext()");
|
Log.d(TAG, "onSkipToPrevious()");
|
||||||
|
seekDelta(-UserPreferences.getRewindSecs() * 1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onRewind() {
|
||||||
|
Log.d(TAG, "onRewind()");
|
||||||
|
seekDelta(-UserPreferences.getRewindSecs() * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1221,11 +1228,12 @@ public class PlaybackServiceMediaPlayer implements SharedPreferences.OnSharedPre
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRewind() {
|
public void onSkipToNext() {
|
||||||
Log.d(TAG, "onRewind()");
|
Log.d(TAG, "onSkipToNext()");
|
||||||
seekDelta(-UserPreferences.getRewindSecs() * 1000);
|
// will be handled by onMediaButtonEvent(KeyEvent.KEYCODE_MEDIA_NEXT)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSeekTo(long pos) {
|
public void onSeekTo(long pos) {
|
||||||
Log.d(TAG, "onSeekTo()");
|
Log.d(TAG, "onSeekTo()");
|
||||||
|
|
Loading…
Reference in New Issue