|
@@ -123,28 +123,21 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {
|
|
),
|
|
),
|
|
);
|
|
);
|
|
} else {
|
|
} 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,
|
|
|
|
+ ],
|
|
);
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|