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) {
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user