1 Commits

Author SHA1 Message Date
71c0bf6644 MainActivity: generate dynamic menu from last two weeks 2026-02-19 00:14:41 +01:00

View File

@@ -149,7 +149,7 @@ class MainActivity : AppCompatActivity() {
if (dynamicMenu) {
// populate frequency map from all events of the last two weeks
val lastWeekTime = (System.currentTimeMillis() / 1000) - 14 * 24 * 60
val lastWeekTime = (System.currentTimeMillis() / 1000) - (14 * 24 * 60 * 60)
allEvents.forEach {
if (it.time > lastWeekTime) {
eventTypeStats[it.type] = 1 + (eventTypeStats[it.type] ?: 0)