Merge branch 'dev' of github.com:refilc/naplo into dev

This commit is contained in:
Kima 2024-05-13 20:06:32 +02:00
commit 93dd275969

View File

@ -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();