-
Notifications
You must be signed in to change notification settings - Fork 169
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
Account Settings: Use Alorma Compose Settings Components #731
Conversation
This uses the checkboxes of the alorma compose settings lib instead of creating our own.
This uses the dropdowns of the alorma compose settings lib instead of creating our own.
Updating the state is handled by the checkbox component itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you... this is sooo much better. Fix that one conflict then I can merge.
929e76a
to
ca4d3d7
Compare
# Conflicts: # app/src/main/java/com/jerboa/ui/components/settings/account/AccountSettings.kt
@dessalines I am trying to merge main into the branch but I seem to be unable to login to the new main development state of the app as a NPE is thrown (perhaps because of commit 7d9c5a6) It seems we want to read the ordinal of a setting that is not yet set for a freshly logged in account.
|
The settings for default sort and listing type were changed from ints to enums so we need to handle those with the new compose fields.
I think I properly merged the two changes but I would like to test it locally before the PR is merged :) |
mmmk no problem, ping me whenever you're ready to go. |
@dessalines is the reported NPE issue reproducable by you on the main branch?
If not I will try to fix it in my branch. But also the failing test in the build does not seem to correlate with something I changed. |
Use https://voyager.lemmy.ml , the current |
@dessalines Thanks for the hint. With an account on that instance my changes to the account settings view seem to work with the new enums. Did set them to "Subscribed" and "TopToday", reopening the settings it stayed the same and restarting the app launched the screen to "Subscribed" and "TopToday" |
Perfect, thanks! |
Thanks for merging 👍🏻 |
As promised in #612 I tried to replace all custom component for which Alorma Compose Settings provide a counter part.
The following components don't seem to be present in the lib:
Because of this I left the custom components for these intact.
Preview