Troy Stopera
Troy Stopera

Reputation: 302

Activity.dispatchGenericMotionEvent not called when ContextMenu showing

I'm seeing that when a ContextMenu is displaying, from using View.showContextMenu(), the Activity that contains the view isn't getting a chance to consume motion events in dispatchGenericMotionEvent(MotionEvent). I'm trying to consume events from a connected controller, and direct those inputs elsewhere, and it works fine in every case except when the menu is showing.

Is there another method within the activity to override and intercept the motion events that way?

Is this expected behavior, or a quirk of the phone I'm testing on?

Upvotes: 0

Views: 399

Answers (0)

Related Questions