Issue
I'm getting the following suggestion on my ouTouch()
function:
why is this?
Solution
if you are overriding onTouch listener and you are not calling performClick when clicks are detected, the View may not
handle accessibility actions properly. Logic handling the click actions should
ideally be placed in View#performClick as some accessibility services invoke
performClick when a click action should occur.
so to get rid of the warning you have to call v.performClick();
MotionEvent.ACTION_UP:
v.performClick();
break;
or
@SuppressLint("ClickableViewAccessibility")
Answered By - tamtom
Answer Checked By - Senaida (JavaFixing Volunteer)