Dismiss extension update notification if all updates installed

(cherry picked from commit 10b0ef9b6dbe94b80e9cfcaf244883a99b42737f)
This commit is contained in:
arkon
2023-08-02 18:00:06 -04:00
committed by Jobobby04
parent 50f59befb4
commit c67580ed83
4 changed files with 18 additions and 8 deletions
@@ -40,7 +40,7 @@ class SetFetchInterval(
fun getWindow(dateTime: ZonedDateTime): Pair<Long, Long> {
val today = dateTime.toLocalDate().atStartOfDay(dateTime.zone)
val lowerBound = today.minusDays(FETCH_INTERVAL_GRACE_PERIOD.toLong())
val upperBound = lowerBound.plusDays(FETCH_INTERVAL_GRACE_PERIOD.toLong())
val upperBound = today.plusDays(FETCH_INTERVAL_GRACE_PERIOD.toLong())
return Pair(lowerBound.toEpochSecond() * 1000, upperBound.toEpochSecond() * 1000 - 1)
}