Skip to content

Fix email verification input #6367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Kota-Jagadeesh
Copy link
Collaborator

  • Resolved issue where the email verification input field height increased when pressing the Enter key on the soft keyboard.
  • Updated LoginActivity.kt to handle IME_ACTION_DONE in askUserForTwoFactorAuth, ensuring performLogin is triggered correctly.
  • Modified activity_login.xml, layout-land/activity_login.xml, and layout-xlarge/activity_login.xml to set imeOptions to actionDone and enforce singleLine to prevent height expansion.
  • Tested on emulator to verify "Done" submits the verification code without layout issues.
  • [Bug]: Email verification input text field should not be multiline on login screen #6348 .
  • BEFORE :
    image
  • AFTER :
    Screenshot from 2025-07-06 13-32-08

@Kota-Jagadeesh
Copy link
Collaborator Author

@rohit9625 I couldn't find any changes requested for this PR. Could you kindly recheck and let me know which PR you made the changes to?

@rohit9625

This comment was marked as resolved.

@RitikaPahwa4444
Copy link
Collaborator

RitikaPahwa4444 commented Jul 11, 2025

@rohit9625 you'll have to hit the submit review button for us to see the comments 😅 It's still in pending state, you'll have to open the files tab again to submit.

@rohit9625
Copy link
Collaborator

@rohit9625 you'll have to hit the submit review button for us to see the comments 😅 It's still in pending state, you'll have to open the files tab again to submit.

What? I thought I just need to comment on it and the pending was showing because no-one has responded to that comment. My bad, I'm really sorry for this :(
Thank you so much @RitikaPahwa4444 :)

@RitikaPahwa4444
Copy link
Collaborator

No worries, Rohit. It's not very intuitive, maybe. Thanks a lot for reviewing!

I thought I just need to comment on it

We have the add single comment option for that. Start review helps add multiple comments and post all of them in one go. You'll be able to edit/delete the comments before you submit.

I can see the comment now. @Kota-Jagadeesh you should also be able see the review comment.

@rohit9625
Copy link
Collaborator

We have the add single comment option for that. Start review helps add multiple comments and post all of them in one go. You'll be able to edit/delete the comments before you submit.

Yep, thanks :)

@Kota-Jagadeesh
Copy link
Collaborator Author

No worries, Rohit. It's not very intuitive, maybe. Thanks a lot for reviewing!

I thought I just need to comment on it

We have the add single comment option for that. Start review helps add multiple comments and post all of them in one go. You'll be able to edit/delete the comments before you submit.

I can see the comment now. @Kota-Jagadeesh you should also be able see the review comment.

yeah, i am able to see the comments now :)

@rohit9625
Copy link
Collaborator

Working as expected. Good job! @Kota-Jagadeesh

After_Email_OTP_Field_Fix.webm

However, the keyboard gets hidden automatically when the email verification code input field automatically focused or by pressing the IME action at the password input field. This behavior was already there and not a regression. If you don't mind, could you please look for the cause of this issue? I think it'll be a small fix, probably by changing the IME action of the password input field.

After that, we can safely merge this PR :)

@Kota-Jagadeesh
Copy link
Collaborator Author

@rohit9625 Updated the PR , Please review it !!

Copy link

✅ Generated APK variants!

@Kota-Jagadeesh
Copy link
Collaborator Author

@rohit9625 If you are free , Can you please review the PR ?

Copy link
Collaborator

@rohit9625 rohit9625 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It behaves as expected and looks good now. This PR is ready to merge @nicolas-raoul

ReproAfterLoginScreenFix.mp4

@nicolas-raoul
Copy link
Member

Thanks a lot @rohit9625 for your in-depth review, and @Kota-Jagadeesh for your contribution! 🙂

@nicolas-raoul nicolas-raoul merged commit 29ade1e into commons-app:main Jul 17, 2025
1 check passed
@Kota-Jagadeesh
Copy link
Collaborator Author

closes #6348

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants