Merge "Set callback for the color background in the tile" into sc-dev am: bd888709ff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14119221 Change-Id: I1f5414f1ed2ab00b7524bd120fa5d66d01616ef8
This commit is contained in:
@@ -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