From 38f73a5d6082ddef5dab3deb06bb2e0a082abd05 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 18 Nov 2020 19:15:19 +0100 Subject: [PATCH] Some fixes --- .../main/java/app/fedilab/fedilabtube/PeertubeActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java index be0e740..ba16393 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java @@ -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(); } }