Adapts the visibility of the navigation.
767468
private void adaptNavigationVisibility() {
        if (isSplitScreen()) {
            if (navigationFragmentContainer != null && cardView != null && toolbarLarge != null) {
                navigationFragmentContainer
                        .setVisibility(isNavigationHidden() ? View.GONE : View.VISIBLE);
                toolbarLarge.hideNavigation(isNavigationHidden());
                int preferenceScreenHorizontalMargin =
                        getResources().getDimensionPixelSize(R.dimen.card_view_horizontal_margin);
                int preferenceScreenMarginRight =
                        getResources().getDimensionPixelSize(R.dimen.card_view_margin_right);
                int cardViewIntrinsicMargin =
                        getResources().getDimensionPixelSize(R.dimen.card_view_intrinsic_margin);
                FrameLayout.LayoutParams cardViewLayoutParams =
                        (FrameLayout.LayoutParams) cardView.getLayoutParams();
                cardViewLayoutParams.gravity =
                        isNavigationHidden() ? Gravity.CENTER_HORIZONTAL : Gravity.NO_GRAVITY;
                int marginStart = (isNavigationHidden() ? preferenceScreenHorizontalMargin :
                        navigationWidth) - cardViewIntrinsicMargin;
                int marginEnd = (isNavigationHidden() ? preferenceScreenHorizontalMargin :
                        preferenceScreenMarginRight) - cardViewIntrinsicMargin;
                setMarginStart(cardViewLayoutParams, marginStart);
                setMarginEnd(cardViewLayoutParams, marginEnd);
            }
        } else {
            if (getSelectedNavigationPreference() != null) {
                if (isNavigationHidden()) {
                    hideToolbarNavigationIcon();
                } else {
                    showToolbarNavigationIcon();
                }
            } else if (isNavigationHidden() && navigationFragment != null &&
                    navigationFragment.getCallback() == null) {
                if (navigationFragment.getNavigationPreferenceCount() > 0) {
                    navigationFragment.selectNavigationPreference(0, null);
                } else {
                    finish();
                }
            }
        }
    }
797904
protected void setPreviewVisible(boolean visible) {

        if (visible) {
            addStyleName(I_CmsLayoutBundle.INSTANCE.locationPickerCss().hasPreview());
        } else {
            removeStyleName(I_CmsLayoutBundle.INSTANCE.locationPickerCss().hasPreview());
        }
    }
855711
private void adaptTitleContainerVisibility() {
        if (titleContainer != null) {
            if (customTitleView == null && customTitleViewId == -1) {
                titleContainer.setVisibility(
                        !TextUtils.isEmpty(title) || icon != null ? View.VISIBLE : View.GONE);
            } else {
                titleContainer.setVisibility(View.VISIBLE);
            }
        }
    }
93038
private void updateNavPos(CmsResource res, CmsSitemapChange change) throws CmsException {

        if (change.hasChangedPosition()) {
            applyNavigationChanges(change, res);
        }
    }
272564
private void applyFullPagerState(float position, boolean isLeaving) {
        views.fullBackground.setVisibility(position == 0f ? View.INVISIBLE : View.VISIBLE);
        views.fullBackground.setAlpha(position);

        views.pagerToolbar.setVisibility(position == 0f ? View.INVISIBLE : View.VISIBLE);
        views.pagerToolbar.setAlpha(isSystemUiShown() ? position : 0f);

        views.pagerTitle.setVisibility(position == 1f ? View.VISIBLE : View.INVISIBLE);

        if (isLeaving && position == 0f) {
            pagerAdapter.setActivated(false);
            showSystemUi(true);
        }
    }
1282480
protected void setMapVisible(boolean visible) {

        Style style = m_mapCanvas.getStyle();
        if (visible) {
            style.clearDisplay();
        } else {
            style.setDisplay(Display.NONE);
        }
    }
1215229
public void setDescriptionVisible(boolean visible) {
        if (visible) {
            add("Center", split);
            split.setTopComponent(tableScroll);
            split.setBottomComponent(descriptionScrollPane);
            // restore the divider location
            split.setDividerLocation(split.getHeight() - lastDescriptionHeight);
        } else {
            // save the size of the description pane to restore it later
            lastDescriptionHeight = split.getHeight() - split.getDividerLocation();
            remove(split);
            add("Center", tableScroll);
        }
        descriptionButton.setSelected(visible);
        PropertySheetPanel.this.revalidate();
    }
529781
private void updateHeaderVisibilities() {
        int top = stickyHeaderTop();
        int childCount = mList.getChildCount();
        for (int i = 0; i < childCount; i++) {

            // ensure child is a wrapper view
            View child = mList.getChildAt(i);
            if (!(child instanceof WrapperView)) {
                continue;
            }

            // ensure wrapper view child has a header
            WrapperView wrapperViewChild = (WrapperView) child;
            if (!wrapperViewChild.hasHeader()) {
                continue;
            }

            // update header views visibility
            View childHeader = wrapperViewChild.mHeader;
            if (wrapperViewChild.getTop() < top) {
                if (childHeader.getVisibility() != View.INVISIBLE) {
                    childHeader.setVisibility(View.INVISIBLE);
                }
            } else {
                if (childHeader.getVisibility() != View.VISIBLE) {
                    childHeader.setVisibility(View.VISIBLE);
                }
            }
        }
    }
376773
public void showRouteOverview(int[] padding) {
    updateCameraTrackingMode(NAVIGATION_TRACKING_MODE_NONE);
    RouteInformation routeInformation = buildRouteInformationFromProgress(currentRouteProgress);
    animateCameraForRouteOverview(routeInformation, padding);
  }
943131
protected void setVisible(boolean visible) {
        GVRSceneObject sceneObject = gvrCursorController.getCursor();
        if (sceneObject != null && sceneObject.isEnabled() != visible) {
            sceneObject.setEnable(visible);
        }
    }
668332
private void obtainNavigationBackground() {
        try {
            setNavigationBackgroundColor(ThemeUtil.getColor(this, R.attr.navigationBackground));
        } catch (NotFoundException e) {
            int resourceId = ThemeUtil.getResId(this, R.attr.navigationBackground, -1);

            if (resourceId != -1) {
                setNavigationBackground(resourceId);
            } else {
                setNavigationBackground(null);
            }
        }
    }
641919
private void adaptNeutralButton() {
        if (neutralButton != null) {
            neutralButton.setText(neutralButtonText != null ?
                    neutralButtonText.toString().toUpperCase(Locale.getDefault()) : null);
            OnClickListenerWrapper onClickListener =
                    new OnClickListenerWrapper(neutralButtonListener, false, getDialog(),
                            DialogInterface.BUTTON_NEUTRAL);
            neutralButton.setOnClickListener(onClickListener);
            neutralButton.setVisibility(
                    !TextUtils.isEmpty(neutralButtonText) ? View.VISIBLE : View.GONE);
            adaptButtonBarContainerVisibility();
        }
    }
1104926
private void adaptDividerColor() {
        adaptDividerColor(topDivider);
        adaptDividerColor(bottomDivider);

        if (dividers != null) {
            for (Divider divider : dividers.values()) {
                adaptDividerColor(divider);
            }
        }
    }
338650
private void updateManeuverView(String maneuverViewType, String maneuverViewModifier,
                                  @Nullable Double roundaboutAngle) {
    upcomingManeuverView.setManeuverTypeAndModifier(maneuverViewType, maneuverViewModifier);
    if (roundaboutAngle != null) {
      upcomingManeuverView.setRoundaboutAngle(roundaboutAngle.floatValue());
    }
  }
370150
function(e) {
      var t = this;
      UI.hideToolTips();
      UI.pauseTour();

      // Tell the settings it's about to be shown
      t.tourSettingsView.show();

      // Don't propagate the click to the heading
      e.stopPropagation();
    }
31249
def visibility_changed(self, enable):
        
        if self.dockwidget is None:
            return
        if enable:
            self.dockwidget.raise_()
            widget = self.get_focus_widget()
            if widget is not None and self.undocked_window is not None:
                widget.setFocus()
        visible = self.dockwidget.isVisible() or self.ismaximized
        if self.DISABLE_ACTIONS_WHEN_HIDDEN:
            toggle_actions(self.plugin_actions, visible)
        self.isvisible = enable and visible
        if self.isvisible:
            self.refresh_plugin()
29597
private void setScrollbarVisible(boolean visible) {

        if (visible) {
            getElement().getStyle().clearWidth();
            m_knob.getStyle().clearDisplay();
        } else {
            getElement().getStyle().setWidth(0, Unit.PX);
            m_knob.getStyle().setDisplay(Display.NONE);
        }
    }