Update lesson start time check to 2 hours in LiveCardProvider for improved activity termination logic

This commit is contained in:
2026-03-10 07:04:10 +01:00
parent 5cc3d3d38a
commit 10f24af7e4

View File

@@ -409,8 +409,8 @@ class LiveCardProvider extends ChangeNotifier {
currentState == LiveCardState.night) &&
hasActivityStarted &&
nextLesson != null &&
nextLesson!.start.difference(now).inMinutes > 60) {
debugPrint("Több, mint 1 óra van az első óráig. Befejezés...");
nextLesson!.start.difference(now).inMinutes > 120) {
debugPrint("Több, mint 2 óra van az első óráig. Befejezés...");
PlatformChannel.endLiveActivity();
serverSync.unregister();
hasActivityStarted = false;