-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Prevent favorites from displaying twice #1704
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
Conversation
|
@mario can you test this please? I would but for some reason favorites (only have 1 file) loads forever (only displaying "loading...")... also cc @tobiasKaminsky |
|
I tested it successfully 👍, but I am unsure regarding the impact of directly executing instead of using the pool. |
|
It used to be this way. It didn't work. Then we changed it. Then it worked. Now it doesn't work again xD Will check... |
|
So both ways work for me. However, the real issue seems to be this: 10-25 18:26:55.025 5964-6013/com.nextcloud.client D/OwnCloudClient #1: REQUEST SEARCH /server/remote.php/dav Search is issued twice no matter the executor... |
|
Now also related to #1732 but I can't test it :( since Fav/Photos don't work for me and I don't have the time to investigate atm. 😢 |
|
Came here because of the photos showing up twice. Curious as to how this story continues :+) |
With latest app master and latest server master I cannot reproduce this: I only see one "request search" and only one search execuction:
What kind of environment did you used? |
|
Btw. for me its only shown twice the first time i enter Favorites. Refreshing then there (pulling down the list) removes the duplicates...maybe it helps for testing. |
|
@tobiasKaminsky @mario I found the cause for the double search inside of OCFileListFragment... and So whenever you click on Favorites in the drawer the onActivityCreated gets called and right after onViewStateRestored gets called, both then triggering the search. So we either:
where we replace it by: I think i'd be nice if we fix the double calling since the other solution just throughs away the second result since all the elements will already be in the list the second time... |
|
Closing this in favor of #2490, thanks to @AndyScherzinger :-) |
Proposed fix for issue #1698 (also affects selecting "Photos" from Navigation Drawer)