Open track activity by pressing cancel

This commit is contained in:
PavelRatushny 2017-08-16 11:22:36 +03:00
parent 73193e8bc9
commit caff7d1d48

View file

@ -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);