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

Commit bd888709 authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Android (Google) Code Review
Browse files

Merge "Set callback for the color background in the tile" into sc-dev

parents e7edb005 0f69d960
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -118,7 +118,11 @@ open class QSTileViewHorizontal(
    override fun setClickable(clickable: Boolean) {
    override fun setClickable(clickable: Boolean) {
        super.setClickable(clickable)
        super.setClickable(clickable)
        background = if (clickable && mShowRippleEffect) {
        background = if (clickable && mShowRippleEffect) {
            mTileBackground
            mRipple?.also {
                // In case that the colorBackgroundDrawable was used as the background, make sure
                // it has the correct callback instead of null
                colorBackgroundDrawable?.callback = it
            }
        } else {
        } else {
            colorBackgroundDrawable
            colorBackgroundDrawable
        }
        }