Fixed Next behavior in additional places

This commit is contained in:
Nite 2021-03-19 19:25:34 +01:00
parent 6a53644355
commit ef29f26893
No known key found for this signature in database
GPG Key ID: 1D1AD59B1C6386C1
2 changed files with 4 additions and 10 deletions

View File

@ -1501,12 +1501,9 @@ public class PlayerFragment extends Fragment implements GestureDetector.OnGestur
if (e1X - e2X > swipeDistance && absX > swipeVelocity) if (e1X - e2X > swipeDistance && absX > swipeVelocity)
{ {
networkAndStorageChecker.getValue().warnIfNetworkOrStorageUnavailable(); networkAndStorageChecker.getValue().warnIfNetworkOrStorageUnavailable();
if (mediaPlayerController.getCurrentPlayingNumberOnPlaylist() < mediaPlayerController.getPlaylistSize() - 1) mediaPlayerController.next();
{ onCurrentChanged();
mediaPlayerController.next(); onSliderProgressChanged();
onCurrentChanged();
onSliderProgressChanged();
}
return true; return true;
} }

View File

@ -221,10 +221,7 @@ public class MediaPlayerLifecycleSupport
mediaPlayerController.previous(); mediaPlayerController.previous();
break; break;
case KeyEvent.KEYCODE_MEDIA_NEXT: case KeyEvent.KEYCODE_MEDIA_NEXT:
if (downloader.getCurrentPlayingIndex() < downloader.downloadList.size() - 1) mediaPlayerController.next();
{
mediaPlayerController.next();
}
break; break;
case KeyEvent.KEYCODE_MEDIA_STOP: case KeyEvent.KEYCODE_MEDIA_STOP:
mediaPlayerController.stop(); mediaPlayerController.stop();