6.0.1 commit
This commit is contained in:
parent
393063ad09
commit
1c11367839
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue