From f89c305d38da503126b603eeeee528d8d931af50 Mon Sep 17 00:00:00 2001 From: PavelRatushnyi Date: Wed, 25 Oct 2017 19:57:43 +0300 Subject: [PATCH] Rearrange code --- .../CoordinateInputDialogFragment.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) 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) {