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))
mainView.layoutParams = params
val playerView = findViewById<FragmentContainerView>(R.id.playerFragment1)
val playerParams = playerView.layoutParams as MarginLayoutParams
playerParams.setMargins(navigationBarInsets.left, 0, navigationBarInsets.right, 0)
val playerParams = playerView?.layoutParams as? MarginLayoutParams
playerParams?.setMargins(navigationBarInsets.left, 0, navigationBarInsets.right, 0)
playerView.layoutParams = playerParams
audioPlayerFragmentView.visibility = if (visible) View.VISIBLE else View.GONE
}