Compare commits
1 Commits
fc48984c67
...
71c0bf6644
| Author | SHA1 | Date | |
|---|---|---|---|
| 71c0bf6644 |
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user