From 5b3a5aaf0173a9644c27bdc4c6b77018b9f9cf60 Mon Sep 17 00:00:00 2001 From: LagradOst Date: Fri, 14 Jan 2022 20:23:53 +0100 Subject: [PATCH] fixed #450 --- .../lagradost/cloudstream3/ui/player/FullScreenPlayer.kt | 7 ++++--- app/src/main/res/layout/player_custom_layout.xml | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/player/FullScreenPlayer.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/player/FullScreenPlayer.kt index da16820f..1784123d 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/player/FullScreenPlayer.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/player/FullScreenPlayer.kt @@ -226,7 +226,7 @@ open class FullScreenPlayer : AbstractPlayerFragment(R.layout.fragment_player) { private fun setPlayBackSpeed(speed: Float) { try { setKey(PLAYBACK_SPEED_KEY, speed) - playback_speed_btt?.text = + player_speed_btt?.text = getString(R.string.player_speed_text_format).format(speed) .replace(".0x", "x") } catch (e: Exception) { @@ -989,7 +989,8 @@ open class FullScreenPlayer : AbstractPlayerFragment(R.layout.fragment_player) { // settingsManager.getBoolean(ctx.getString(R.string.use_system_brightness_key), false) } - playback_speed_btt?.isVisible = playBackSpeedEnabled + player_speed_btt?.isVisible = playBackSpeedEnabled + player_resize_btt?.isVisible = playerResizeEnabled } catch (e: Exception) { logError(e) } @@ -1005,7 +1006,7 @@ open class FullScreenPlayer : AbstractPlayerFragment(R.layout.fragment_player) { nextResize() } - playback_speed_btt?.setOnClickListener { + player_speed_btt?.setOnClickListener { autoHide() showSpeedDialog() } diff --git a/app/src/main/res/layout/player_custom_layout.xml b/app/src/main/res/layout/player_custom_layout.xml index f545774c..70d843d1 100644 --- a/app/src/main/res/layout/player_custom_layout.xml +++ b/app/src/main/res/layout/player_custom_layout.xml @@ -483,12 +483,12 @@ style="@style/VideoButton" android:nextFocusLeft="@id/player_lock" - android:nextFocusRight="@id/playback_speed_btt" + android:nextFocusRight="@id/player_speed_btt" android:text="@string/video_aspect_ratio_resize" app:icon="@drawable/ic_baseline_aspect_ratio_24" />