commit
365bd7957e
@ -362,7 +362,12 @@ class LiveCardProvider extends ChangeNotifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//END
|
//END
|
||||||
if (hasActivityStarted &&
|
if (hasActivityStarted && nextLesson != null &&
|
||||||
|
nextLesson!.start.difference(now).inMinutes > 60) {
|
||||||
|
debugPrint("Több, mint 1 óra van az első óráig. Befejezés...");
|
||||||
|
PlatformChannel.endLiveActivity();
|
||||||
|
hasActivityStarted = false;
|
||||||
|
} else if (hasActivityStarted &&
|
||||||
!hasDayEnd &&
|
!hasDayEnd &&
|
||||||
nextLesson == null &&
|
nextLesson == null &&
|
||||||
now.isAfter(prevLesson!.end)) {
|
now.isAfter(prevLesson!.end)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user