Skip to content

Commit

Permalink
Fix text selection on coordinates lock
Browse files Browse the repository at this point in the history
  • Loading branch information
andreynovikov committed Feb 16, 2024
1 parent cc40255 commit ab9b6de
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,14 @@ private void updateWaypointInformation(double latitude, double longitude) {
setLockDrawable(coordsView);

coordsView.setOnTouchListener((v, event) -> {
if ((event.getAction() & MotionEvent.ACTION_MASK) == MotionEvent.ACTION_UP) {
if (event.getX() >= coordsView.getRight() - coordsView.getTotalPaddingRight()) {
// your action for drawable click event
if (event.getX() >= coordsView.getRight() - coordsView.getTotalPaddingRight()) {
if ((event.getAction() & MotionEvent.ACTION_MASK) == MotionEvent.ACTION_UP) {
mWaypoint.locked = !mWaypoint.locked;
mListener.onWaypointSave(mWaypoint);
mListener.onWaypointFocus(mWaypoint);
setLockDrawable(coordsView);
return true;
}
return true;
}
return false;
});
Expand Down

0 comments on commit ab9b6de

Please sign in to comment.