Merge "Hiding split shade media container when not needed" into sc-dev am: 0f6b5c9754 am: 4129bc9724
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14980861 Change-Id: I0a55aa61cb21cb7ba60fc3ecd7145c4d98af5507
This commit is contained in:
@@ -186,11 +186,9 @@ class KeyguardMediaController @Inject constructor(
|
||||
}
|
||||
|
||||
private fun hideMediaPlayer() {
|
||||
if (useSplitShade) {
|
||||
setVisibility(splitShadeContainer, View.GONE)
|
||||
} else {
|
||||
setVisibility(singlePaneContainer, View.GONE)
|
||||
}
|
||||
// always hide splitShadeContainer as it's initially visible and may influence layout
|
||||
setVisibility(splitShadeContainer, View.GONE)
|
||||
setVisibility(singlePaneContainer, View.GONE)
|
||||
}
|
||||
|
||||
private fun setVisibility(view: ViewGroup?, newVisibility: Int) {
|
||||
|
||||
Reference in New Issue
Block a user