fix: widget tap not working on iOS by giving preferences to init
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user