mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04: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,3 +1,4 @@
|
|||||||
|
import 'dart:io';
|
||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
import 'package:immich_mobile/constants/constants.dart';
|
import 'package:immich_mobile/constants/constants.dart';
|
||||||
import 'package:immich_mobile/repositories/widget.repository.dart';
|
import 'package:immich_mobile/repositories/widget.repository.dart';
|
||||||
@ -32,6 +33,8 @@ class WidgetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> refreshWidgets() async {
|
Future<void> refreshWidgets() async {
|
||||||
|
if (Platform.isAndroid) return;
|
||||||
|
|
||||||
for (final name in kWidgetNames) {
|
for (final name in kWidgetNames) {
|
||||||
await _repository.refresh(name);
|
await _repository.refresh(name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user