fix(mobile): skip widget updates if on android (#19553)

* fix: skip widget updates if on android

* remove dead line
This commit is contained in:
Brandon Wees 2025-06-26 10:07:22 -05:00 committed by GitHub
parent ea3a14ed25
commit a43159f4ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,4 @@
import 'dart:io';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:immich_mobile/constants/constants.dart';
import 'package:immich_mobile/repositories/widget.repository.dart';
@ -32,6 +33,8 @@ class WidgetService {
}
Future<void> refreshWidgets() async {
if (Platform.isAndroid) return;
for (final name in kWidgetNames) {
await _repository.refresh(name);
}