From 44b893ba96a92d9f85a8c833d615eaee827fad2f Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 9 Jun 2023 09:35:21 +0200 Subject: [PATCH] Fix offline player bottom padding --- .../github/libretube/ui/activities/OfflinePlayerActivity.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/activities/OfflinePlayerActivity.kt b/app/src/main/java/com/github/libretube/ui/activities/OfflinePlayerActivity.kt index d358447d6..0b18e2c69 100644 --- a/app/src/main/java/com/github/libretube/ui/activities/OfflinePlayerActivity.kt +++ b/app/src/main/java/com/github/libretube/ui/activities/OfflinePlayerActivity.kt @@ -7,6 +7,7 @@ import android.os.Bundle import android.text.format.DateUtils import android.view.View import androidx.activity.viewModels +import androidx.core.view.isInvisible import androidx.core.view.isVisible import androidx.lifecycle.lifecycleScope import androidx.media3.common.C @@ -96,11 +97,11 @@ class OfflinePlayerActivity : BaseActivity() { playerView = binding.player playerView.setShowSubtitleButton(true) - playerView.subtitleView?.visibility = View.VISIBLE + playerView.subtitleView?.isVisible = true playerView.player = player playerBinding = binding.player.binding - playerBinding.fullscreen.visibility = View.GONE + playerBinding.fullscreen.isInvisible = true playerBinding.closeImageButton.setOnClickListener { finish() }