mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-11 18:50:58 +00:00
Made isLimitedVersion check more specific.
This commit is contained in:
parent
2aef2ebec1
commit
03e9cb398b
2 changed files with 5 additions and 3 deletions
|
@ -938,6 +938,11 @@ class VideoDetailView : ConstraintLayout {
|
|||
return@let it.config.reduceFunctionsInLimitedVersion && BuildConfig.IS_PLAYSTORE_BUILD
|
||||
else false;
|
||||
} ?: false;
|
||||
|
||||
if (isLimitedVersion && _player.isAudioMode) {
|
||||
_player.switchToVideoMode()
|
||||
}
|
||||
|
||||
val buttons = listOf(RoundButton(context, R.drawable.ic_add, context.getString(R.string.add), TAG_ADD) {
|
||||
(video ?: _searchVideo)?.let {
|
||||
_slideUpOverlay = UISlideOverlays.showAddToOverlay(it, _overlayContainer) {
|
||||
|
|
|
@ -915,9 +915,6 @@ abstract class FutoVideoPlayerBase : RelativeLayout {
|
|||
}
|
||||
|
||||
fun clear() {
|
||||
if (BuildConfig.IS_PLAYSTORE_BUILD) {
|
||||
switchToVideoMode()
|
||||
}
|
||||
exoPlayer?.player?.stop();
|
||||
exoPlayer?.player?.clearMediaItems();
|
||||
setLoading(false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue