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

[New arch] Fix bottom navigation shortcuts #3719

Merged
merged 16 commits into from
Aug 18, 2022

Conversation

abelgardep
Copy link
Contributor

@abelgardep abelgardep commented Jul 21, 2022

Replace LiveData with Flow/StateFlow and retrieve directly the filtered data from the database.

The final state for the screen is generated by combining 4 other states: FileListOption, AccountName, FolderDisplayed, SortTypeAndOrder, and SearchFilter. This way, the bottom navigation shortcuts should be fixed and more could be added in the future.

Adding StateFlow also removes some nullability checks we had when retrieving the value from the LiveData.

It should fix also this issue #3666 [FIXED]
Includes support for hidden files (It was pending): #2818 (comment) [DONE]
Potential fix to thumbnails generation [FIXED]

Known issues

Grid/List configuration from the previous version will be reset
Glitch: Search, navigate to a folder and browse back shows all the content again but in the search view, it will still appear the previous query.


QA

@abelgardep abelgardep added this to the Synchronization milestone milestone Jul 21, 2022
@abelgardep abelgardep self-assigned this Jul 21, 2022
@abelgardep abelgardep mentioned this pull request Jul 21, 2022
75 tasks
@abelgardep abelgardep force-pushed the new_arch/bottom_nav_improvements branch from 67c77fa to a6fc63b Compare August 11, 2022 08:35
@abelgardep abelgardep marked this pull request as ready for review August 12, 2022 06:47
@abelgardep abelgardep requested a review from JuancaG05 August 12, 2022 06:47
Copy link
Collaborator

@JuancaG05 JuancaG05 left a comment

Choose a reason for hiding this comment

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

Huge improvements in one PR! Just some comments, nice work! 🥇

Copy link
Collaborator

@JuancaG05 JuancaG05 left a comment

Choose a reason for hiding this comment

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

Nice job!! 💯 Approved on my side 👍

@abelgardep abelgardep force-pushed the new_arch/bottom_nav_improvements branch from 018ba1f to 36f8855 Compare August 17, 2022 07:50
@abelgardep abelgardep force-pushed the new_arch/bottom_nav_improvements branch from 071ada7 to 3dd8979 Compare August 18, 2022 06:14
@abelgardep abelgardep merged commit cfdafcc into new_arch/synchronization Aug 18, 2022
@abelgardep abelgardep deleted the new_arch/bottom_nav_improvements branch August 18, 2022 08:44
@jesmrec jesmrec removed the Sprint label Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants