Rearrange code
This commit is contained in:
parent
84b3b34be8
commit
f89c305d38
1 changed files with 12 additions and 12 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue