This PR integrates the app update scheduling with prayer times, ensuring that the app update check runs 30 minutes after the Maghrib prayer time. This feature is implemented by calculating the duration until 30 minutes after the Maghrib prayer time and scheduling the app update check to run at that time.
Changes:
Removed _updateTimer in landscape_normal_home and portrait_normal_home to prevent infinite loops.
Integrated startUpdateScheduler method in AppUpdateNotifier to schedule app updates based on prayer times.
Calculated the duration until 30 minutes after the Maghrib prayer time and scheduled the app update check to run at that time.
Canceled any previously scheduled update timer to prevent multiple updates from running concurrently.
Code Changes:
The code changes are included in the attached patch file. The main changes are in AppUpdateNotifier and landscape_normal_home, portrait_normal_home, landscape_turkish_home, and portrait_turkish_home files.
This PR integrates the app update scheduling with prayer times, ensuring that the app update check runs 30 minutes after the Maghrib prayer time. This feature is implemented by calculating the duration until 30 minutes after the Maghrib prayer time and scheduling the app update check to run at that time.
Changes:
_updateTimer
inlandscape_normal_home
andportrait_normal_home
to prevent infinite loops.startUpdateScheduler
method inAppUpdateNotifier
to schedule app updates based on prayer times.Code Changes:
The code changes are included in the attached patch file. The main changes are in
AppUpdateNotifier
andlandscape_normal_home
,portrait_normal_home
,landscape_turkish_home
, andportrait_turkish_home
files.