Compare commits

...

2 Commits

2 changed files with 3 additions and 1 deletions
@@ -1160,6 +1160,8 @@ class VideoDetailView : ConstraintLayout {
_player.switchToVideoMode();
allowBackground = false;
_buttonPins.getButtonByTag(TAG_BACKGROUND)?.text?.text = resources.getString(R.string.background);
} else {
_buttonPins.getButtonByTag(TAG_BACKGROUND)?.text?.text = resources.getString(R.string.video);
}
}
if(!_player.isFitMode && !_player.isFullScreen && !fragment.isInPictureInPicture)
@@ -873,7 +873,7 @@ abstract class FutoVideoPlayerBase : RelativeLayout {
@OptIn(UnstableApi::class)
private fun loadSelectedSources(play: Boolean, resume: Boolean): Boolean {
val sourceVideo = if(!isAudioMode || _lastAudioMediaSource == null) _lastVideoMediaSource else null;
val sourceVideo = _lastVideoMediaSource
val sourceAudio = _lastAudioMediaSource;
val sourceSubs = _lastSubtitleMediaSource;