From 10f24af7e49497a3f2d8911b60f1a1d142f33f37 Mon Sep 17 00:00:00 2001 From: b3ni15 Date: Tue, 10 Mar 2026 07:04:10 +0100 Subject: [PATCH] Update lesson start time check to 2 hours in LiveCardProvider for improved activity termination logic --- refilc/lib/api/providers/live_card_provider.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/refilc/lib/api/providers/live_card_provider.dart b/refilc/lib/api/providers/live_card_provider.dart index 61751295..2e9e0f41 100644 --- a/refilc/lib/api/providers/live_card_provider.dart +++ b/refilc/lib/api/providers/live_card_provider.dart @@ -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;