Merge "Set callback for the color background in the tile" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
bd888709ff
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user