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)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue