|
|
|
@ -333,6 +333,8 @@ class ScreenConfigViewModel extends ChangeNotifier {
|
|
|
|
// At midnight, update weather and prayer details if required
|
|
|
|
// At midnight, update weather and prayer details if required
|
|
|
|
if (now.day != lastChecked.day) {
|
|
|
|
if (now.day != lastChecked.day) {
|
|
|
|
if (now.difference(now.copyWith(hour: 0, minute: 0, second: 0, millisecond: 0, microsecond: 0)).inMinutes >= 5) {
|
|
|
|
if (now.difference(now.copyWith(hour: 0, minute: 0, second: 0, millisecond: 0, microsecond: 0)).inMinutes >= 5) {
|
|
|
|
|
|
|
|
QueuingViewModel queuingViewModel = getIt.get<QueuingViewModel>();
|
|
|
|
|
|
|
|
await queuingViewModel.stopHubConnection();
|
|
|
|
nativeMethodChannelService.restartApp();
|
|
|
|
nativeMethodChannelService.restartApp();
|
|
|
|
if (globalConfigurationsModel.isWeatherReq) {
|
|
|
|
if (globalConfigurationsModel.isWeatherReq) {
|
|
|
|
await getWeatherDetailsFromServer();
|
|
|
|
await getWeatherDetailsFromServer();
|
|
|
|
|