diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java index bca6e58ae4..56cf783828 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java @@ -94,18 +94,6 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm private boolean compassUpdateAllowed = true; private MapMarkersHelper mapMarkersHelper; - @NonNull - @Override - public Dialog onCreateDialog(Bundle savedInstanceState) { - return new Dialog(getContext(), getTheme()) { - @Override - public void onBackPressed() { - saveMarkers(); - super.onBackPressed(); - } - }; - } - @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -121,6 +109,18 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm fragment.show(getMapActivity().getSupportFragmentManager(), CoordinateInputBottomSheetDialogFragment.TAG); } + @NonNull + @Override + public Dialog onCreateDialog(Bundle savedInstanceState) { + return new Dialog(getContext(), getTheme()) { + @Override + public void onBackPressed() { + saveMarkers(); + super.onBackPressed(); + } + }; + } + @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {