Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

UI fixups #892

Merged
merged 3 commits into from
Jun 27, 2020
Merged

UI fixups #892

merged 3 commits into from
Jun 27, 2020

Conversation

msfjarvis
Copy link
Member

@msfjarvis msfjarvis commented Jun 27, 2020

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates

📜 Description

Fixes folder label not wrapping off at the correct bounds and the error drawable for wrong password overlapping the
view password icon.

💡 Motivation and Context

The first bug was reported to me by @xdevs23 and the second one was pointed out by @FabianHenneke

💚 How did you test it?

Visual verification

📝 Checklist

  • I formatted the code with the IDE's reformat action (Ctrl + Shift + L/Cmd + Shift + L)
  • I reviewed submitted code
  • I added a CHANGELOG entry if applicable

📸 Screenshots / GIFs

Before

screenshot-20200628-010816
screenshot-20200628-010028

After

screenshot-20200628-010911
screenshot-20200628-010923

Without this we'd have overlapping password toggle and error drawable icons.
This issue was triggered because of Kotlin converting `setError` to its property syntax.
That caused things to be delegated to platform `TextView`'s `setError(String)` method as
opposed to `TextInputEditText`'s `setError(String, Drawable)`.

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This would previously get laid under the child count and folder indicator icon.
Now it will eagerly split into separate lines as soon as it reaches the child
count view

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
@msfjarvis msfjarvis added this to the 1.10.0 milestone Jun 27, 2020
@Skrilltrax
Copy link
Member

Looks good but that error prompt isn't a part of Material 2.0. Shouldn't we use the material components?

@msfjarvis
Copy link
Member Author

Looks good but that error prompt isn't a part of Material 2.0. Shouldn't we use the material components?

What's the MDC equivalent?

@Skrilltrax
Copy link
Member

Skrilltrax commented Jun 27, 2020

Looks good but that error prompt isn't a part of Material 2.0. Shouldn't we use the material components?

What's the MDC equivalent?

https://material.io/components/images/content/bd72a300ee8c3236b48ee86d5c7824c7.png

https://material.io/develop/android/components/text-fields/

@msfjarvis
Copy link
Member Author

Looks good but that error prompt isn't a part of Material 2.0. Shouldn't we use the material components?

What's the MDC equivalent?

https://material.io/components/images/content/bd72a300ee8c3236b48ee86d5c7824c7.png

https://material.io/develop/android/components/text-fields/

Tried setting app:errorEnabled and reverting my commit and it looks like the old broken state, gonna stick with what I have here for the time being.

Screenshot

screenshot-20200628-013038

@Skrilltrax
Copy link
Member

Skrilltrax commented Jun 27, 2020

Tried setting app:errorEnabled and reverting my commit and it looks like the old broken state, gonna stick with what I have here for the time being.

Screenshot

Yeah, I guess you'll manually have to disable and enable view password toggle in case of an error. I don't have many issues with the new tooltip.

@msfjarvis msfjarvis merged commit 9fc5d33 into develop Jun 27, 2020
@msfjarvis msfjarvis deleted the ui-fixups branch June 27, 2020 20:15
msfjarvis added a commit that referenced this pull request Jun 27, 2020
msfjarvis added a commit that referenced this pull request Jun 27, 2020
* develop: (24 commits)
  UI fixups (#892)
  Update Public Suffix List data (#888)
  Use remembered credential even if it is empty (#880)
  Reset SSH passphrase after SSH key import (#885)
  Prevent cached passwords from being wiped (#884)
  build: uprev all dependencies (#882)
  github: update actions for updated branching logic
  Use a custom sshj config (#878)
  Remove API 30 from pull request test matrix (#879)
  Add Google Play/F-Droid badges to the README (#877)
  Retire Android Arsenal badge (#876)
  Add paragraphs to F-Droid summary (#874)
  Replace YAML with HTML in F-Droid fastlane summary (#873)
  Add relnotes for #871 (#872)
  Add org.gnu.icecat as a trusted multi-origin browser (#871)
  README: re-add F-Droid (#870)
  build: prepare next development version
  build: bump version to 1.9.0
  Prepare release 1.9.0
  PasswordCreationActivity: properly guard rename code
  ...

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
@msfjarvis
Copy link
Member Author

msfjarvis commented Jun 27, 2020

image

Would this be better? I'm not strongly attached to either option. Forget it, this breaks things.

@Skrilltrax
Copy link
Member

Cool, the earlier one was better anyway.

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

Successfully merging this pull request may close these issues.

2 participants