6.0.1 commit

This commit is contained in:
Xilin Jia 2024-06-24 22:10:45 +01:00
parent 393063ad09
commit 1c11367839
1 changed files with 2 additions and 2 deletions

View File

@ -400,8 +400,8 @@ class MainActivity : CastEnabledActivity() {
navigationBarInsets.bottom + (if (visible) externalPlayerHeight else 0)) navigationBarInsets.bottom + (if (visible) externalPlayerHeight else 0))
mainView.layoutParams = params mainView.layoutParams = params
val playerView = findViewById<FragmentContainerView>(R.id.playerFragment1) val playerView = findViewById<FragmentContainerView>(R.id.playerFragment1)
val playerParams = playerView.layoutParams as MarginLayoutParams val playerParams = playerView?.layoutParams as? MarginLayoutParams
playerParams.setMargins(navigationBarInsets.left, 0, navigationBarInsets.right, 0) playerParams?.setMargins(navigationBarInsets.left, 0, navigationBarInsets.right, 0)
playerView.layoutParams = playerParams playerView.layoutParams = playerParams
audioPlayerFragmentView.visibility = if (visible) View.VISIBLE else View.GONE audioPlayerFragmentView.visibility = if (visible) View.VISIBLE else View.GONE
} }