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:
Fabian Kozynski
2021-04-08 16:41:54 +00:00
committed by Automerger Merge Worker

View File

@@ -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
}