Merge pull request #1413 from mfietz/issue/1407-media-controls

Rewind when skip to previous is pressed
This commit is contained in:
Tom Hennen 2015-11-24 06:56:52 -05:00
commit 3383d7c8f6
1 changed files with 13 additions and 5 deletions

View File

@ -1210,8 +1210,15 @@ public class PlaybackServiceMediaPlayer implements SharedPreferences.OnSharedPre
}
@Override
public void onSkipToNext() {
Log.d(TAG, "onSkipToNext()");
public void onSkipToPrevious() {
Log.d(TAG, "onSkipToPrevious()");
seekDelta(-UserPreferences.getRewindSecs() * 1000);
}
@Override
public void onRewind() {
Log.d(TAG, "onRewind()");
seekDelta(-UserPreferences.getRewindSecs() * 1000);
}
@Override
@ -1221,11 +1228,12 @@ public class PlaybackServiceMediaPlayer implements SharedPreferences.OnSharedPre
}
@Override
public void onRewind() {
Log.d(TAG, "onRewind()");
seekDelta(-UserPreferences.getRewindSecs() * 1000);
public void onSkipToNext() {
Log.d(TAG, "onSkipToNext()");
// will be handled by onMediaButtonEvent(KeyEvent.KEYCODE_MEDIA_NEXT)
}
@Override
public void onSeekTo(long pos) {
Log.d(TAG, "onSeekTo()");