Small fix

This commit is contained in:
Vitaliy 2021-03-23 11:13:22 +02:00
parent 63b588d0b1
commit 1b0b76d5b2
2 changed files with 1 additions and 3 deletions

View file

@ -1250,9 +1250,6 @@ public class TrackMenuFragment extends ContextMenuScrollFragment implements Card
if (mapActivity != null) {
FragmentManager fragmentManager = mapActivity.getSupportFragmentManager();
fragmentManager.beginTransaction().show(this).commit();
if (pointsCard != null && menuType == TrackMenuType.POINTS) {
pointsCard.updateGroups();
}
}
} catch (Exception e) {
log.error(e);

View file

@ -147,6 +147,7 @@ public class AddGpxPointBottomSheetHelper implements OnDismissListener {
private void onClose() {
TrackMenuFragment fragment = mapActivity.getTrackMenuFragment();
if (fragment != null) {
fragment.updateContent();
fragment.show();
} else {
TrackMenuFragment.openTrack(mapActivity, new File(newGpxPoint.getGpx().path), null);