From 1b0b76d5b2868f7544f237b525408c512ce57686 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 23 Mar 2021 11:13:22 +0200 Subject: [PATCH] Small fix --- OsmAnd/src/net/osmand/plus/track/TrackMenuFragment.java | 3 --- .../net/osmand/plus/views/AddGpxPointBottomSheetHelper.java | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/track/TrackMenuFragment.java b/OsmAnd/src/net/osmand/plus/track/TrackMenuFragment.java index 45a30465f0..bb738a8e00 100644 --- a/OsmAnd/src/net/osmand/plus/track/TrackMenuFragment.java +++ b/OsmAnd/src/net/osmand/plus/track/TrackMenuFragment.java @@ -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); diff --git a/OsmAnd/src/net/osmand/plus/views/AddGpxPointBottomSheetHelper.java b/OsmAnd/src/net/osmand/plus/views/AddGpxPointBottomSheetHelper.java index f525c60fbd..d5da3f9c6d 100644 --- a/OsmAnd/src/net/osmand/plus/views/AddGpxPointBottomSheetHelper.java +++ b/OsmAnd/src/net/osmand/plus/views/AddGpxPointBottomSheetHelper.java @@ -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);