private bool ShouldBeVisible() { if (m_menuController != null) { if (!m_menuController.IsMenuActive()) { return(false); } } if (m_appDirector == null || m_appDirector.GetState() == AppDirector.AppState.kInit || m_appDirector.GetOverlayShowing()) { return(false); } if (IsPostsActive()) { if (m_arrowType == ArrowType.kNext) { return(!(m_posts.IsPostIndexAtEnd() && m_carousel.IsAtMiddle())); } else if (m_arrowType == ArrowType.kPrev) { return(!(m_posts.IsPostIndexAtStart() && m_carousel.IsAtMiddle())); } } if (m_appDirector.GetState() == AppDirector.AppState.kGallery) { if (m_arrowType == ArrowType.kNext) { return(!(m_gallery.IsGalleryIndexAtEnd() && m_carousel.IsAtMiddle())); } else if (m_arrowType == ArrowType.kPrev) { return(!(m_gallery.IsGalleryIndexAtStart() && m_carousel.IsAtMiddle())); } } return(false); }