-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[android] - only dispatch events if not handled by MarkerView #8447
[android] - only dispatch events if not handled by MarkerView #8447
Conversation
90af112
to
3c7fbd0
Compare
Retesting this and we actually need to be able to handle touches that are handled by the child views.. this makes starting a pan on a MarkerView impossible. |
Will need to re implement the OnClick logic with OnTouch to be able to control the flag returned to MarkerViewContainer. |
3c7fbd0
to
8f38a77
Compare
8f38a77 fixes the issue, want to review @Guardiola31337? |
select(marker, v, adapter); | ||
@Override | ||
public boolean onTouch(View v, MotionEvent event) { | ||
switch (event.getAction()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why using switch
instead if
? There is only one case (MotionEvent.ACTION_UP
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment fixed in 430f9f6
use onTouch listener to ignore dispatching action up events to MapView when they are already handled by MarkerView.
8f38a77
to
430f9f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* Revert "[android] - only dispatch events if not handled by MarkerView (#8447)" This reverts commit 09d7685. * Revert "[android] - move touch handling of MarkerViews back to View#setOnClickListener. Workaround panning issue by dispatching touch events to the parent ViewGroup. (#8272)" This reverts commit 1693b38.
Closes #8444