Skip to content

armgit / ente

Public Imported from GitHub
0

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

don't focus search bar when navigating to search tab

laurenspriem4c84bb270b98
diff --git a/mobile/apps/photos/lib/ui/viewer/search/search_widget.dart b/mobile/apps/photos/lib/ui/viewer/search/search_widget.dart
index a3dbd808c1..ef5f22cd73 100644
--- a/mobile/apps/photos/lib/ui/viewer/search/search_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search/search_widget.dart
@@ -59,14 +59,7 @@ class SearchWidgetState extends State<SearchWidget> {
if (!mounted) {
return;
}
- if (event.selectedIndex == 3) {
- SchedulerBinding.instance.addPostFrameCallback((_) {
- if (!mounted) {
- return;
- }
- focusNode.requestFocus();
- });
- } else {
+ if (event.selectedIndex != 3) {
focusNode.unfocus();
}
});