mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-09 13:50:57 +00:00
proposed fix for bug2805
This commit is contained in:
1 parent
c86f1b8f1b
commit
cd19b87535
2 files changed
+11
-7
No files matched your search
+7
-7
@@ -26,20 +26,20 @@ public class EventRegattaActivity extends AbstractEventActivity<AbstractEventReg
|
||||
private final UserAgentDetails userAgent = new UserAgentDetails(Window.Navigator.getUserAgent());
|
||||
private final AsyncActionsExecutor asyncActionsExecutor = new AsyncActionsExecutor();
|
||||
private final long delayBetweenAutoAdvancesInMilliseconds = 3000l;
|
||||
private final Timer autoRefreshTimer = new Timer(PlayModes.Live, PlayStates.Paused,
|
||||
delayBetweenAutoAdvancesInMilliseconds);
|
||||
private final Timer autoRefreshTimer;
|
||||
|
||||
public EventRegattaActivity(AbstractEventRegattaPlace place, EventClientFactory clientFactory,
|
||||
HomePlacesNavigator homePlacesNavigator) {
|
||||
super(place, clientFactory, homePlacesNavigator);
|
||||
if (this.ctx.getRegattaAnalyticsManager() == null) {
|
||||
ctx.withRegattaAnalyticsManager(new RegattaAnalyticsDataManager( //
|
||||
clientFactory.getSailingService(), //
|
||||
asyncActionsExecutor, //
|
||||
autoRefreshTimer, //
|
||||
clientFactory.getErrorReporter(), //
|
||||
ctx.withRegattaAnalyticsManager(new RegattaAnalyticsDataManager(
|
||||
clientFactory.getSailingService(),
|
||||
asyncActionsExecutor,
|
||||
new Timer(PlayModes.Live, PlayStates.Paused, delayBetweenAutoAdvancesInMilliseconds),
|
||||
clientFactory.getErrorReporter(),
|
||||
userAgent));
|
||||
}
|
||||
this.autoRefreshTimer = ctx.getRegattaAnalyticsManager().getTimer();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+4
@@ -134,4 +134,8 @@ public class RegattaAnalyticsDataManager {
|
||||
dialog.ensureDebugId(debugIdPrefix + "SettingsDialog");
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
public Timer getTimer() {
|
||||
return timer;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user