1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-09 23:17:29 +02:00

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

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);
}