[mob][photos] Fix fix trigger for iOS
This commit is contained in:
parent
7263c45300
commit
bd28254021
1 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ class FaceMlService {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (kDebugMode) {
|
if (!kDebugMode) {
|
||||||
unawaited(indexAndClusterAll());
|
unawaited(indexAndClusterAll());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -155,7 +155,7 @@ class FaceMlService {
|
||||||
|
|
||||||
void listenIndexOnDiffSync() {
|
void listenIndexOnDiffSync() {
|
||||||
Bus.instance.on<DiffSyncCompleteEvent>().listen((event) async {
|
Bus.instance.on<DiffSyncCompleteEvent>().listen((event) async {
|
||||||
if (LocalSettings.instance.isFaceIndexingEnabled == false) {
|
if (LocalSettings.instance.isFaceIndexingEnabled == false || kDebugMode) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// [neeraj] intentional delay in starting indexing on diff sync, this gives time for the user
|
// [neeraj] intentional delay in starting indexing on diff sync, this gives time for the user
|
||||||
|
|
Loading…
Reference in a new issue