forked from organicmaps/organicmaps
[android] do not try to hide navigation bottom sheet
Signed-off-by: Arnaud Vergnet <arnaud.vergnet@mailo.com>
This commit is contained in:
parent
60decd4101
commit
7ce042c0f8
2 changed files with 0 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue