feat: cellular video/audio qa

Closes #52

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-26 13:35:35 +08:00
parent ed3036cc43
commit 5d1c1494dd
8 changed files with 185 additions and 99 deletions

View File

@@ -68,12 +68,13 @@ class _MainAppState extends State<MainApp>
}
void _checkDefaultSearch([bool shouldCheck = false]) {
if (shouldCheck &&
_mainController.pages[_mainController.pageController.page?.round() ?? 0]
is! HomePage) {
return;
}
if (_homeController.enableSearchWord) {
if (shouldCheck &&
_mainController
.pages[_mainController.pageController.page?.round() ?? 0]
is! HomePage) {
return;
}
int now = DateTime.now().millisecondsSinceEpoch;
if (now - _homeController.lateCheckAt >= 5 * 60 * 1000) {
_homeController.lateCheckAt = now;