From f2d64a746454e5a36e896f15341462c7c0a4b05a Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Wed, 9 Sep 2020 18:47:02 +0300 Subject: [PATCH] Fix widgets showing up after route between points dialog --- .../GpxApproximationFragment.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/GpxApproximationFragment.java b/OsmAnd/src/net/osmand/plus/measurementtool/GpxApproximationFragment.java index 4217faf1c9..4698b00d86 100644 --- a/OsmAnd/src/net/osmand/plus/measurementtool/GpxApproximationFragment.java +++ b/OsmAnd/src/net/osmand/plus/measurementtool/GpxApproximationFragment.java @@ -165,7 +165,6 @@ public class GpxApproximationFragment extends ContextMenuScrollFragment params.gravity = Gravity.BOTTOM | Gravity.START; mainView.findViewById(R.id.control_buttons).setLayoutParams(params); } - enterGpxApproximationMode(); runLayoutListener(); calculateGpxApproximation(); @@ -193,7 +192,6 @@ public class GpxApproximationFragment extends ContextMenuScrollFragment if (gpxApproximator != null) { gpxApproximator.cancelApproximation(); } - exitGpxApproximationMode(); if (!applyApproximation) { Fragment fragment = getTargetFragment(); if (fragment instanceof GpxApproximationFragmentListener) { @@ -276,28 +274,6 @@ public class GpxApproximationFragment extends ContextMenuScrollFragment } } - private void enterGpxApproximationMode() { - MapActivity mapActivity = getMapActivity(); - if (mapActivity != null) { - boolean portrait = AndroidUiHelper.isOrientationPortrait(mapActivity); - AndroidUiHelper.setVisibility(mapActivity, portrait ? View.INVISIBLE : View.GONE, - R.id.map_left_widgets_panel, - R.id.map_right_widgets_panel, - R.id.map_center_info); - } - } - - private void exitGpxApproximationMode() { - MapActivity mapActivity = getMapActivity(); - if (mapActivity != null) { - AndroidUiHelper.setVisibility(mapActivity, View.VISIBLE, - R.id.map_left_widgets_panel, - R.id.map_right_widgets_panel, - R.id.map_center_info, - R.id.map_search_button); - } - } - @Override public boolean shouldShowMapControls(int menuState) { return (menuState & (MenuState.HEADER_ONLY | MenuState.HALF_SCREEN)) != 0;