浏览代码

Let indexing run on iOS

vishnukvmd 1 年之前
父节点
当前提交
81a734e9d2
共有 1 个文件被更改,包括 15 次插入22 次删除
  1. 15 22
      lib/app.dart

+ 15 - 22
lib/app.dart

@@ -123,28 +123,21 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {
         ),
       );
     } else {
-      return Listener(
-        onPointerDown: (event) {
-          SemanticSearchService.instance.pauseIndexing();
-          debugPrint("user is interacting with the app");
-          _resetTimer();
-        },
-        child: MaterialApp(
-          title: "ente",
-          themeMode: ThemeMode.system,
-          theme: lightThemeData,
-          darkTheme: darkThemeData,
-          home: const HomeWidget(),
-          debugShowCheckedModeBanner: false,
-          builder: EasyLoading.init(),
-          locale: locale,
-          supportedLocales: appSupportedLocales,
-          localeListResolutionCallback: localResolutionCallBack,
-          localizationsDelegates: const [
-            ...AppLocalizations.localizationsDelegates,
-            S.delegate,
-          ],
-        ),
+      return MaterialApp(
+        title: "ente",
+        themeMode: ThemeMode.system,
+        theme: lightThemeData,
+        darkTheme: darkThemeData,
+        home: const HomeWidget(),
+        debugShowCheckedModeBanner: false,
+        builder: EasyLoading.init(),
+        locale: locale,
+        supportedLocales: appSupportedLocales,
+        localeListResolutionCallback: localResolutionCallBack,
+        localizationsDelegates: const [
+          ...AppLocalizations.localizationsDelegates,
+          S.delegate,
+        ],
       );
     }
   }