We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9838a1c commit 79eab00Copy full SHA for 79eab00
AnkiDroid/src/main/java/com/ichi2/anki/DayRolloverHandler.kt
@@ -95,9 +95,15 @@ object DayRolloverHandler : BroadcastReceiver() {
95
Timber.i("day cutoff changed %d -> %d", lastCutoff, currentCutoff)
96
// we do not want to send a "study queues changes" message initially
97
if (lastCutoff != null) {
98
- Timber.i("updating study queues")
99
- ChangeManager.notifySubscribers(opChanges { studyQueues = true }, initiator = null)
+ handleDayRollover()
100
}
101
this.lastCutoff = currentCutoff
102
+
103
+ private fun handleDayRollover() {
104
+ Timber.i("day rollover occurred")
105
106
+ Timber.i("updating study queues")
107
+ ChangeManager.notifySubscribers(opChanges { studyQueues = true }, initiator = null)
108
+ }
109
0 commit comments