Skip to content
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

Several minor changes for UI and extra stuff #398

Merged
merged 8 commits into from
Jun 12, 2024

Conversation

joggee-fr
Copy link
Contributor

Hi,
I would like to propose some modifications to the application.

  1. Replacement hardcoded welcome string displayed on the welcome fragment with a translatable one added to XML string resource file. By the way, add a French translation.
  2. Simply use tools:listitem in main activity RecyclerView to preview the screen in Android Studio with item layout.
  3. Add margins / padding to manual add activity layout. I have also moved away the Toolbar from ScrollView to follow the behavior from main activity layout.
    Speaking of Toolbars, anybody know why they are nested in AppBarLayouts? I understand it could be interesting to add scrolling gestures but I can't see where such a feature is used in the FreeOTP application.
  4. Nest password activity layout in a ScrollView. It should fix issue Cannot work past the first screen when starting FreeOTP for the first time #349.
  5. Add a long click listener on item to select it, the same way clicking on image does. It addresses part of issue FreeOTP 2.0 (40): UI: Improve Token selection #278.
  6. Fix hyperlink not well displayed in backup fragment.
  7. Minor stuff.

Let me know if you want me to split these commits in several PRs instead.
Thanks.

joggee-fr added 8 commits May 14, 2024 23:15
Add "app_welcome" as a new string resource for this purpose.
BTW, add the translation for this new resource in French.
And move away app bar from the scroll view. It is already the case in
main activity for example.
Also remove ConstraintLayout nesting Button which seems a bit
superfluous.
It should fix display issue for small screens.
Position of the Done button has also been changed, moving from stuck
to bottom right to simply bottom of content.
Add same behavior on long click on token item than click on its icon.
Hyperlink in backup fragment during on boarding was not correctly
displayed. Use HtmlCompat.fromHtml() to create a spanned text to fix the
issue.
With HtmlCompat.fromHtml() managing API level itself.
@justin-stephenson
Copy link
Contributor

Thank you for the PR @joggee-fr - Please allow me some time to test the changes and UI flows.

@justin-stephenson
Copy link
Contributor

@joggee-fr Changes tested locally and look good to me, thank you.

@justin-stephenson justin-stephenson merged commit 2c43f96 into freeotp:master Jun 12, 2024
1 of 2 checks passed
@joggee-fr joggee-fr deleted the jg/misc-ui branch June 17, 2024 21:10
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.

2 participants