fix: widget tap not working on iOS by giving preferences to init

This commit is contained in:
Prateek Sunal
2025-08-18 19:09:44 +05:30
parent b356e5d0a5
commit 8bacf8ff93

View File

@@ -224,6 +224,8 @@ Future<void> _init(bool isBackground, {String via = ''}) async {
Computer.shared().turnOn(workersCount: 4).ignore();
CryptoUtil.init();
HomeWidgetService.instance.init(preferences);
_logger.info("Lockscreen init $tlog");
unawaited(LockScreenSettings.instance.init(preferences));
@@ -269,8 +271,6 @@ Future<void> _init(bool isBackground, {String via = ''}) async {
await SyncService.instance.init(preferences);
_logger.info("SyncService init done $tlog");
HomeWidgetService.instance.init(preferences);
if (!isBackground) {
await _scheduleFGHomeWidgetSync();
}