From e60e63c6c33e1be1ba023c38dca638871de40013 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Thu, 9 Nov 2017 14:21:55 +0200 Subject: [PATCH] Make interface inner --- .../AddMarkersGroupBottomSheetDialogFragment.java | 14 +++++++------- .../plus/mapmarkers/MapMarkersGroupsFragment.java | 7 ++++++- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/AddMarkersGroupBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/AddMarkersGroupBottomSheetDialogFragment.java index 46aa54df21..738ccf1766 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/AddMarkersGroupBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/AddMarkersGroupBottomSheetDialogFragment.java @@ -65,11 +65,11 @@ public class AddMarkersGroupBottomSheetDialogFragment extends MenuBottomSheetDia return mainView; } -} - -interface AddMarkersGroupFragmentListener { - - void favouritesOnClick(); - - void waypointsOnClick(); + + interface AddMarkersGroupFragmentListener { + + void favouritesOnClick(); + + void waypointsOnClick(); + } } diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersGroupsFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersGroupsFragment.java index cbe89b41dc..2dd4b1862b 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersGroupsFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersGroupsFragment.java @@ -35,6 +35,7 @@ import net.osmand.plus.base.MapViewTrackingUtilities; import net.osmand.plus.dashboard.DashLocationFragment; import net.osmand.plus.mapmarkers.adapters.MapMarkerItemViewHolder; import net.osmand.plus.mapmarkers.adapters.MapMarkersGroupsAdapter; +import net.osmand.plus.mapmarkers.AddMarkersGroupBottomSheetDialogFragment.AddMarkersGroupFragmentListener; import net.osmand.plus.widgets.EmptyStateRecyclerView; import net.osmand.util.MapUtils; @@ -252,11 +253,15 @@ public class MapMarkersGroupsFragment extends Fragment implements OsmAndCompassL fragment.show(getChildFragmentManager(), AddMarkersGroupBottomSheetDialogFragment.TAG); } + private void openAddFavouritesGroupMenu() { + + } + private AddMarkersGroupFragmentListener createAddMarkersGroupFragmentListener() { return new AddMarkersGroupFragmentListener() { @Override public void favouritesOnClick() { - + openAddFavouritesGroupMenu(); } @Override