Fix route details pages control

This commit is contained in:
crimean 2019-04-01 18:17:37 +03:00
parent e7c2bd150b
commit 5565b3dec7

View file

@ -426,7 +426,7 @@ public class ChooseRouteFragment extends BaseOsmAndFragment implements ContextMe
private void updatePagesViewVisibility(int menuState) {
View pagesView = this.pagesView;
if (pagesView != null) {
if (portrait && routesCount > 1 && pagesView != null) {
if (menuState != MenuState.FULL_SCREEN) {
if (pagesView.getVisibility() != View.VISIBLE) {
pagesView.setVisibility(View.VISIBLE);