Update activity start condition message for clarity and add time constraint

This commit is contained in:
2026-03-09 08:16:37 +01:00
parent 36637e889b
commit 0046d18f3a

View File

@@ -363,11 +363,12 @@ class LiveCardProvider extends ChangeNotifier {
if (!hasActivityStarted &&
!hasUserDismissed &&
nextLesson != null &&
nextLesson!.start.difference(now).inMinutes <= 120 &&
(currentState == LiveCardState.morning ||
currentState == LiveCardState.afternoon ||
currentState == LiveCardState.night)) {
debugPrint(
"Az első óra előtt állunk. Létrehozás...");
"Az első óra előtt állunk, kevesebb mint két órával. Létrehozás...");
hasActivityStarted = true;
_createAndSync();
} else if (!hasActivityStarted &&