|
@@ -275,12 +275,18 @@ class LocalSyncService {
|
|
|
}
|
|
|
|
|
|
void _registerChangeCallback() {
|
|
|
+ // In case of iOS limit permission, this call back is fired immediately
|
|
|
+ // after file selection dialog is dismissed.
|
|
|
PhotoManager.addChangeCallback((value) async {
|
|
|
_logger.info("Something changed on disk");
|
|
|
if (_existingSync != null) {
|
|
|
await _existingSync.future;
|
|
|
}
|
|
|
- sync();
|
|
|
+ if (hasGrantedLimitedPermissions()) {
|
|
|
+ syncAll();
|
|
|
+ } else {
|
|
|
+ sync();
|
|
|
+ }
|
|
|
});
|
|
|
PhotoManager.startChangeNotify();
|
|
|
}
|