mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00: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:
parent
ea3a14ed25
commit
a43159f4ba
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue