Merge "Fix long-press issue in RelativeTouchListener." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8208ca5d05
@@ -115,7 +115,9 @@ abstract class RelativeTouchListener : View.OnTouchListener {
|
|||||||
|
|
||||||
performedLongClick = false
|
performedLongClick = false
|
||||||
handler.postDelayed({
|
handler.postDelayed({
|
||||||
performedLongClick = v.performLongClick()
|
if (v.isLongClickable) {
|
||||||
|
performedLongClick = v.performLongClick()
|
||||||
|
}
|
||||||
}, ViewConfiguration.getLongPressTimeout().toLong())
|
}, ViewConfiguration.getLongPressTimeout().toLong())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user