Skip to content

armgit / ente

Public Imported from GitHub
0

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

Keep contact name field focused

Neeraj Gupta9e7c78c9e90f
diff --git a/mobile/apps/photos/lib/ui/viewer/search/result/edit_contact_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/edit_contact_page.dart
index ac96585831..aa942b06b4 100644
--- a/mobile/apps/photos/lib/ui/viewer/search/result/edit_contact_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search/result/edit_contact_page.dart
@@ -132,8 +132,9 @@ class _EditContactPageState extends State<EditContactPage> {
children: [
Expanded(
child: NotificationListener<ScrollStartNotification>(
- onNotification: (_) {
- if (_nameFocusNode.hasFocus) {
+ onNotification: (notification) {
+ if (notification.dragDetails != null &&
+ _nameFocusNode.hasFocus) {
_nameFocusNode.unfocus();
}
return false;