add listener to root of the app also when (Platform.isAndroid || kDebugMode) is false
This commit is contained in:
parent
c2c858448a
commit
775fc68f16
|
@ -123,7 +123,13 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return MaterialApp(
|
return Listener(
|
||||||
|
onPointerDown: (event) {
|
||||||
|
SemanticSearchService.instance.pauseIndexing();
|
||||||
|
debugPrint("user is interacting with the app");
|
||||||
|
_resetTimer();
|
||||||
|
},
|
||||||
|
child: MaterialApp(
|
||||||
title: "ente",
|
title: "ente",
|
||||||
themeMode: ThemeMode.system,
|
themeMode: ThemeMode.system,
|
||||||
theme: lightThemeData,
|
theme: lightThemeData,
|
||||||
|
@ -138,6 +144,7 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {
|
||||||
...AppLocalizations.localizationsDelegates,
|
...AppLocalizations.localizationsDelegates,
|
||||||
S.delegate,
|
S.delegate,
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue