Merge pull request #634 from Bnyro/master

fix lock mode
This commit is contained in:
Bnyro 2022-06-27 19:28:30 +02:00 committed by GitHub
commit 26e971cbfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"