Skip to content

Commit

Permalink
Fix cgeo#1537 - Long click to directly edit waypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
campbeb committed Jun 8, 2013
1 parent c6a3b41 commit d0cfab6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main/src/cgeo/geocaching/CacheDetailActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2356,6 +2356,15 @@ public void onClick(View v) {
}
});

waypointView.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
EditWaypointActivity.startActivityEditWaypoint(CacheDetailActivity.this, wpt.getId());
refreshOnResume = true;
return true;
}
});

waypoints.addView(waypointView);
}

Expand Down

0 comments on commit d0cfab6

Please sign in to comment.