From a5dc597dae8d69cf4669e6141b784e8b3ee29dc7 Mon Sep 17 00:00:00 2001 From: Jonas Lochmann Date: Mon, 24 May 2021 02:00:00 +0200 Subject: [PATCH] Notify earlier that the premium version expires --- .../java/io/timelimit/android/logic/SyncNotificationLogic.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/timelimit/android/logic/SyncNotificationLogic.kt b/app/src/main/java/io/timelimit/android/logic/SyncNotificationLogic.kt index 7fd9746..5858fcf 100644 --- a/app/src/main/java/io/timelimit/android/logic/SyncNotificationLogic.kt +++ b/app/src/main/java/io/timelimit/android/logic/SyncNotificationLogic.kt @@ -1,5 +1,5 @@ /* - * TimeLimit Copyright 2019 - 2020 Jonas Lochmann + * TimeLimit Copyright 2019 - 2021 Jonas Lochmann * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -107,7 +107,7 @@ class SyncNotificationLogic (private val appLogic: AppLogic) { val oldEntry = notificationsToRemove.find { it.type == warning.first && it.id == warning.second } if (warning.first == NotificationTypes.PREMIUM_EXPIRES) { - val notifyTime = fullVersionEndTime!! - 1000 * 60 * 60 * 24 * 3 // wait until 3 days before its end time + val notifyTime = fullVersionEndTime!! - 1000 * 60 * 60 * 24 * 5 // wait until 5 days before its end time if (oldEntry != null) { notificationsToRemove.remove(oldEntry)