Fixed Bug3877 - Invalid regatta statistics of event series in mobile

view
This commit is contained in:
Vladislav Chumak authored and Benjamin Barth committed 2016-08-17 17:38:47 +02:00
1 parent e3550fbe78
commit 3de29cae55
3 files changed
+9 -2

No files matched your search

@@ -305,7 +305,12 @@ public abstract class AbstractEventActivity<PLACE extends AbstractEventPlace> ex
public boolean isMultiRegattaEvent() {
return getEventDTO().getType() == EventType.MULTI_REGATTA;
}
@Override
public boolean isSingleRegattaEvent() {
return getEventDTO().getType() == EventType.SINGLE_REGATTA;
}
protected List<NavigationItem> getNavigationPathToEventLevel() {
List<NavigationItem> navigationItems = new ArrayList<>();
if(getEventDTO().getType() == EventType.SERIES_EVENT) {
@@ -58,5 +58,7 @@ public interface EventViewBase extends IsWidget {
EventViewDTO getEventDTO();
boolean isMultiRegattaEvent();
boolean isSingleRegattaEvent();
}
}
@@ -44,7 +44,7 @@ public class RegattaOverviewImpl extends AbstractEventOverview {
this.setupUpdateBox(container);
this.setupImpressions(container);
}
this.setupStatisticsBox(container, presenter.isMultiRegattaEvent());
this.setupStatisticsBox(container, !presenter.isSingleRegattaEvent());
setViewContent(container);
}