Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4129bc97 authored by Michał Brzeziński's avatar Michał Brzeziński Committed by Automerger Merge Worker
Browse files

Merge "Hiding split shade media container when not needed" into sc-dev am: 0f6b5c97

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14980861

Change-Id: I1d3d783891b1b943cd31cadedd692d0d7cca5372
parents 0f8c807a 0f6b5c97
Loading
Loading
Loading
Loading
+3 −5
Original line number Original line Diff line number Diff line
@@ -186,12 +186,10 @@ 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) {
        val previousVisibility = view?.visibility
        val previousVisibility = view?.visibility