File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
app/src/main/java/com/lagradost/cloudstream3/ui/player Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -152,20 +152,19 @@ abstract class AbstractPlayerFragment(
152152 isPlaying : CSPlayerLoading
153153 ) {
154154 val isPlayingRightNow = CSPlayerLoading .IsPlaying == isPlaying
155- val isPausedRightNow = CSPlayerLoading .IsPaused == isPlaying
155+ val isBuffering = CSPlayerLoading .IsBuffering == isPlaying
156156 currentPlayerStatus = isPlaying
157157
158- keepScreenOn(! isPausedRightNow )
158+ keepScreenOn(isPlayingRightNow || isBuffering )
159159
160- val isBuffering = CSPlayerLoading .IsBuffering == isPlaying
161160 if (isBuffering) {
162161 playerPausePlayHolderHolder?.isVisible = false
163162 playerBuffering?.isVisible = true
164163 } else {
165164 playerPausePlayHolderHolder?.isVisible = true
166165 playerBuffering?.isVisible = false
167166
168- if (isPlaying == CSPlayerLoading .IsEnded && isLayout(PHONE )){
167+ if (isPlaying == CSPlayerLoading .IsEnded && isLayout(PHONE )) {
169168 playerPausePlay?.setImageResource(R .drawable.ic_baseline_replay_24)
170169 } else if (wasPlaying != isPlaying) {
171170 playerPausePlay?.setImageResource(if (isPlayingRightNow) R .drawable.play_to_pause else R .drawable.pause_to_play)
You can’t perform that action at this time.
0 commit comments