fix lock mode

This commit is contained in:
Bnyro 2022-06-27 19:27:53 +02:00
parent 0f5f4b459c
commit b2bb6f174e
2 changed files with 5 additions and 3 deletions

View File

@ -952,12 +952,14 @@ class PlayerFragment : Fragment() {
}
private fun lockPlayer(isLocked: Boolean) {
val visibility = if (isLocked) View.VISIBLE else View.GONE
exoPlayerView.findViewById<LinearLayout>(R.id.controls_top_right).visibility = visibility
val visibility = if (isLocked) View.VISIBLE else View.INVISIBLE
exoPlayerView.findViewById<LinearLayout>(R.id.exo_top_bar_right).visibility = visibility
exoPlayerView.findViewById<ImageButton>(R.id.exo_play_pause).visibility = visibility
exoPlayerView.findViewById<Button>(R.id.exo_ffwd_with_amount).visibility = visibility
exoPlayerView.findViewById<Button>(R.id.exo_rew_with_amount).visibility = visibility
exoPlayerView.findViewById<FrameLayout>(R.id.exo_bottom_bar).visibility = visibility
exoPlayerView.findViewById<TextView>(R.id.exo_title).visibility =
if (isLocked && isFullScreen) View.VISIBLE else View.INVISIBLE
}
private fun isSubscribed(button: MaterialButton, channel_id: String) {

View File

@ -80,7 +80,7 @@
android:visibility="invisible" />
<LinearLayout
android:id="@+id/controls_top_right"
android:id="@+id/exo_top_bar_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"