Fixed Next behavior in additional places
This commit is contained in:
parent
6a53644355
commit
ef29f26893
|
@ -1501,12 +1501,9 @@ public class PlayerFragment extends Fragment implements GestureDetector.OnGestur
|
|||
if (e1X - e2X > swipeDistance && absX > swipeVelocity)
|
||||
{
|
||||
networkAndStorageChecker.getValue().warnIfNetworkOrStorageUnavailable();
|
||||
if (mediaPlayerController.getCurrentPlayingNumberOnPlaylist() < mediaPlayerController.getPlaylistSize() - 1)
|
||||
{
|
||||
mediaPlayerController.next();
|
||||
onCurrentChanged();
|
||||
onSliderProgressChanged();
|
||||
}
|
||||
mediaPlayerController.next();
|
||||
onCurrentChanged();
|
||||
onSliderProgressChanged();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -221,10 +221,7 @@ public class MediaPlayerLifecycleSupport
|
|||
mediaPlayerController.previous();
|
||||
break;
|
||||
case KeyEvent.KEYCODE_MEDIA_NEXT:
|
||||
if (downloader.getCurrentPlayingIndex() < downloader.downloadList.size() - 1)
|
||||
{
|
||||
mediaPlayerController.next();
|
||||
}
|
||||
mediaPlayerController.next();
|
||||
break;
|
||||
case KeyEvent.KEYCODE_MEDIA_STOP:
|
||||
mediaPlayerController.stop();
|
||||
|
|
Loading…
Reference in New Issue