diff --git a/app/src/main/java/de/westnordost/streetcomplete/data/user/statistics/StatisticsController.kt b/app/src/main/java/de/westnordost/streetcomplete/data/user/statistics/StatisticsController.kt index 707d36ce1f..e26829ffb5 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/data/user/statistics/StatisticsController.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/data/user/statistics/StatisticsController.kt @@ -178,11 +178,11 @@ class StatisticsController( val today = systemTimeNow().toLocalDate() val lastUpdateDate = Instant.fromEpochMilliseconds(lastUpdate).toLocalDate() lastUpdate = nowAsEpochMilliseconds() + activeDatesDao.addToday() if (today > lastUpdateDate) { daysActive++ listeners.forEach { it.onUpdatedDaysActive() } } - activeDatesDao.addToday() } private fun getRealCountryCode(position: LatLon): String? =