For #10180: Add extension to remove touch delegate from parent.
parent
59484208d6
commit
3e13927c25
|
@ -22,3 +22,10 @@ fun View.increaseTapArea(extraDps: Int) {
|
|||
parent.touchDelegate = TouchDelegate(touchRect, this)
|
||||
}
|
||||
}
|
||||
|
||||
fun View.removeTouchDelegate() {
|
||||
val parent = this.parent as View
|
||||
parent.post {
|
||||
parent.touchDelegate = null
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue