mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-10 22:30:56 +00:00
Fixed Bug3877 - Invalid regatta statistics of event series in mobile
view
This commit is contained in:
1 parent
e3550fbe78
commit
3de29cae55
3 files changed
+9
-2
No files matched your search
+6
-1
@@ -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) {
|
||||
|
||||
+2
@@ -58,5 +58,7 @@ public interface EventViewBase extends IsWidget {
|
||||
EventViewDTO getEventDTO();
|
||||
|
||||
boolean isMultiRegattaEvent();
|
||||
|
||||
boolean isSingleRegattaEvent();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user