Open track activity by pressing cancel
This commit is contained in:
parent
73193e8bc9
commit
caff7d1d48
1 changed files with 5 additions and 0 deletions
|
@ -68,6 +68,7 @@ public class AddGpxPointBottomSheetHelper implements OnDismissListener {
|
|||
public void onClick(View v) {
|
||||
hide();
|
||||
contextMenuLayer.cancelAddGpxPoint();
|
||||
openTrackActivity();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -134,6 +135,10 @@ public class AddGpxPointBottomSheetHelper implements OnDismissListener {
|
|||
if (contextMenu.isVisible() && contextMenu.isClosable()) {
|
||||
contextMenu.close();
|
||||
}
|
||||
openTrackActivity();
|
||||
}
|
||||
|
||||
private void openTrackActivity() {
|
||||
Intent newIntent = new Intent(mapActivity, mapActivity.getMyApplication().getAppCustomization().getTrackActivity());
|
||||
newIntent.putExtra(TrackActivity.TRACK_FILE_NAME, newGpxPoint.getGpx().path);
|
||||
newIntent.putExtra(TrackActivity.OPEN_POINTS_TAB, true);
|
||||
|
|
Loading…
Reference in a new issue