Skip to content

armgit / ente

Public Imported from GitHub
0

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

Re-enable iOS AutoFill on Photos email fields

Neeraj Guptaa7efe5538984
diff --git a/mobile/apps/photos/changes/ios-login-autofill.md b/mobile/apps/photos/changes/ios-login-autofill.md
new file mode 100644
index 0000000000..d1f4f44a83
--- /dev/null
+++ b/mobile/apps/photos/changes/ios-login-autofill.md
@@ -0,0 +1 @@
+- Improved iOS Password AutoFill detection on Photos login and sign-up screens.
diff --git a/mobile/apps/photos/lib/ui/account/email_entry_page.dart b/mobile/apps/photos/lib/ui/account/email_entry_page.dart
index a52a4e37b5..1fe5107d06 100644
--- a/mobile/apps/photos/lib/ui/account/email_entry_page.dart
+++ b/mobile/apps/photos/lib/ui/account/email_entry_page.dart
@@ -186,6 +186,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
hintText: AppLocalizations.of(context).email,
textEditingController: _emailController,
keyboardType: TextInputType.emailAddress,
+ autofillHints: const [AutofillHints.email],
autoCorrect: false,
isRequired: true,
onChange: _onEmailChanged,
diff --git a/mobile/apps/photos/lib/ui/account/login_page.dart b/mobile/apps/photos/lib/ui/account/login_page.dart
index 8a95035c7a..ceca190c16 100644
--- a/mobile/apps/photos/lib/ui/account/login_page.dart
+++ b/mobile/apps/photos/lib/ui/account/login_page.dart
@@ -119,6 +119,7 @@ class _LoginPageState extends State<LoginPage> {
hintText: AppLocalizations.of(context).enterYourEmailAddress,
textEditingController: _emailController,
keyboardType: TextInputType.emailAddress,
+ autofillHints: const [AutofillHints.email],
autoCorrect: false,
autoFocus: true,
isRequired: true,