diff --git a/android/src/com/mapswithme/maps/routing/NavigationController.java b/android/src/com/mapswithme/maps/routing/NavigationController.java index 2692dadd65..22530bd05b 100644 --- a/android/src/com/mapswithme/maps/routing/NavigationController.java +++ b/android/src/com/mapswithme/maps/routing/NavigationController.java @@ -234,8 +234,6 @@ public class NavigationController implements Application.ActivityLifecycleCallba { if (show && !UiUtils.isVisible(mFrame)) collapseNavMenu(); - else if (!show && UiUtils.isVisible(mFrame)) - mNavMenu.hideNavBottomSheet(); UiUtils.showIf(show, mFrame); } @@ -369,7 +367,6 @@ public class NavigationController implements Application.ActivityLifecycleCallba @Override public void onStopClicked() { - mNavMenu.hideNavBottomSheet(); RoutingController.get().cancel(); } diff --git a/android/src/com/mapswithme/maps/widget/menu/NavMenu.java b/android/src/com/mapswithme/maps/widget/menu/NavMenu.java index 06438ecc25..2a1dde87b6 100644 --- a/android/src/com/mapswithme/maps/widget/menu/NavMenu.java +++ b/android/src/com/mapswithme/maps/widget/menu/NavMenu.java @@ -105,8 +105,6 @@ public class NavMenu Button stop = bottomFrame.findViewById(R.id.stop); stop.setOnClickListener(v -> onStopClicked()); UiUtils.updateRedButton(stop); - - hideNavBottomSheet(); } private void onStopClicked() @@ -153,11 +151,6 @@ public class NavMenu mNavBottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED); } - public void hideNavBottomSheet() - { - mNavBottomSheetBehavior.setState(BottomSheetBehavior.STATE_HIDDEN); - } - public int getBottomSheetState() { return mNavBottomSheetBehavior.getState();