Some fixes
This commit is contained in:
parent
15f6835a0c
commit
38f73a5d60
|
@ -1838,9 +1838,9 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
||||||
public void onMediaItemTransition(MediaItem mediaItem, int reason) {
|
public void onMediaItemTransition(MediaItem mediaItem, int reason) {
|
||||||
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
|
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
|
||||||
boolean autoplayNextVideo = sharedpreferences.getBoolean(getString(R.string.set_autoplay_next_video_choice), true);
|
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());
|
player.removeMediaItems(0, player.getMediaItemCount());
|
||||||
if (!sepiaSearch) {
|
if (!sepiaSearch && autoplayNextVideo) {
|
||||||
playNextVideo();
|
playNextVideo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue