Some fixes

This commit is contained in:
Thomas 2020-11-18 19:15:19 +01:00
parent 15f6835a0c
commit 38f73a5d60
1 changed files with 2 additions and 2 deletions

View File

@ -1838,9 +1838,9 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
public void onMediaItemTransition(MediaItem mediaItem, int reason) {
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
boolean autoplayNextVideo = sharedpreferences.getBoolean(getString(R.string.set_autoplay_next_video_choice), true);
if (reason == MEDIA_ITEM_TRANSITION_REASON_AUTO && autoplayNextVideo) {
if (reason == MEDIA_ITEM_TRANSITION_REASON_AUTO) {
player.removeMediaItems(0, player.getMediaItemCount());
if (!sepiaSearch) {
if (!sepiaSearch && autoplayNextVideo) {
playNextVideo();
}
}