Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Start indexing on iOS on app start

vishnukvmd4ee94c5b1acf
diff --git a/lib/app.dart b/lib/app.dart
index c5907cc146..ca64d2e53a 100644
--- a/lib/app.dart
+++ b/lib/app.dart
@@ -82,10 +82,14 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {
}
void _setupInteractionTimer({Duration timeout = defaultInteractionTimeout}) {
- _userInteractionTimer = Timer(timeout, () {
- debugPrint("user is not interacting with the app");
+ if (Platform.isAndroid || kDebugMode) {
+ _userInteractionTimer = Timer(timeout, () {
+ debugPrint("user is not interacting with the app");
+ SemanticSearchService.instance.resumeIndexing();
+ });
+ } else {
SemanticSearchService.instance.resumeIndexing();
- });
+ }
}
@override