mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-09 13:50:57 +00:00
proposed fix for bug2805 applied to fakeseries
This commit is contained in:
1 parent
48955bf318
commit
57f9129cbd
2 files changed
+6
-4
No files matched your search
+4
@@ -158,4 +158,8 @@ public class EventSeriesAnalyticsDataManager {
|
||||
dialog.ensureDebugId(debugIdPrefix + "SettingsDialog");
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
public Timer getTimer() {
|
||||
return timer;
|
||||
}
|
||||
}
|
||||
+2
-4
@@ -41,8 +41,6 @@ public class SeriesActivity extends AbstractActivity implements SeriesView.Prese
|
||||
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);
|
||||
|
||||
public SeriesActivity(AbstractSeriesTabPlace place, SeriesClientFactory clientFactory, HomePlacesNavigator homePlacesNavigator) {
|
||||
this.currentPlace = place;
|
||||
@@ -54,7 +52,7 @@ public class SeriesActivity extends AbstractActivity implements SeriesView.Prese
|
||||
ctx.withAnalyticsManager(new EventSeriesAnalyticsDataManager( //
|
||||
clientFactory.getSailingService(), //
|
||||
asyncActionsExecutor, //
|
||||
autoRefreshTimer, //
|
||||
new Timer(PlayModes.Live, PlayStates.Paused, delayBetweenAutoAdvancesInMilliseconds), //
|
||||
clientFactory.getErrorReporter(), //
|
||||
userAgent));
|
||||
|
||||
@@ -136,6 +134,6 @@ public class SeriesActivity extends AbstractActivity implements SeriesView.Prese
|
||||
|
||||
@Override
|
||||
public Timer getAutoRefreshTimer() {
|
||||
return autoRefreshTimer;
|
||||
return ctx.getAnalyticsManager().getTimer();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user