Merge "Hiding split shade media container when not needed" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0f6b5c9754
@@ -186,11 +186,9 @@ class KeyguardMediaController @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun hideMediaPlayer() {
|
private fun hideMediaPlayer() {
|
||||||
if (useSplitShade) {
|
// always hide splitShadeContainer as it's initially visible and may influence layout
|
||||||
setVisibility(splitShadeContainer, View.GONE)
|
setVisibility(splitShadeContainer, View.GONE)
|
||||||
} else {
|
setVisibility(singlePaneContainer, View.GONE)
|
||||||
setVisibility(singlePaneContainer, View.GONE)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setVisibility(view: ViewGroup?, newVisibility: Int) {
|
private fun setVisibility(view: ViewGroup?, newVisibility: Int) {
|
||||||
|
|||||||
Reference in New Issue
Block a user