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

Commit 0f69d960 authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Set callback for the color background in the tile

When the background of the tile changes from no ripple
(colorBackgroundDrawable) to ripple (mRipple), it sets the callback in
colorBackgroundDrawable to null. Need to make sure it's set back to the
RippleDrawable.

Test: manual
Fixes: 183888161
Change-Id: I7282296ca54e6f7d6ee5bec8dfbb5f6b0d1e12b0
parent 2a29cb25
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -118,7 +118,11 @@ open class QSTileViewHorizontal(
    override fun setClickable(clickable: Boolean) {
        super.setClickable(clickable)
        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 {
            colorBackgroundDrawable
        }