Make interface inner

This commit is contained in:
PavelRatushny 2017-11-09 14:21:55 +02:00
parent b53c1eebb7
commit e60e63c6c3
2 changed files with 13 additions and 8 deletions

View file

@ -65,11 +65,11 @@ public class AddMarkersGroupBottomSheetDialogFragment extends MenuBottomSheetDia
return mainView;
}
}
interface AddMarkersGroupFragmentListener {
void favouritesOnClick();
void waypointsOnClick();
interface AddMarkersGroupFragmentListener {
void favouritesOnClick();
void waypointsOnClick();
}
}

View file

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