diff --git a/refilc/lib/api/providers/live_card_provider.dart b/refilc/lib/api/providers/live_card_provider.dart index 0446178..d1d2922 100644 --- a/refilc/lib/api/providers/live_card_provider.dart +++ b/refilc/lib/api/providers/live_card_provider.dart @@ -362,7 +362,7 @@ class LiveCardProvider extends ChangeNotifier { } //END - if (hasActivityStarted && nextLesson != null && + if ((currentState == LiveCardState.afternoon || currentState == LiveCardState.morning || 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..."); PlatformChannel.endLiveActivity();