Skip to content

Conversation

@PhilLab
Copy link
Contributor

@PhilLab PhilLab commented Dec 15, 2025

  • Tests written, or not not needed

Before dismissing the dialog, we need to wait for a potentially pending transaction. As showing the dialog also includes the dismissing of prior instances, we need to wait there as well.
Both is needed to satisfy the test case added in the previous commit.

Otherwise, the dialog might be shown after it was meant to be dismissed already. This issue was observed when testing RemoveFilesDialogFragment's removeFiles() and also sporadically "in the wild" when using the app productively

If you want to see for yourself, first checkout the test commit and see the test fail. Then checkout the fix commit and see the test succeed

@PhilLab PhilLab force-pushed the loading_dialog_timing_issue branch 2 times, most recently from 8e549a1 to 4dcbad8 Compare December 16, 2025 17:24
@PhilLab PhilLab changed the title Illustrating timing issue with FileActivity#dismissLoadingDialog Fixing timing issue with FileActivity's loading dialog show and dismiss Dec 16, 2025
@PhilLab PhilLab marked this pull request as ready for review December 16, 2025 17:27
@PhilLab
Copy link
Contributor Author

PhilLab commented Dec 16, 2025

@alperozturk96 can you review?

This timing issue was reproducible when testing
RemoveFilesDialogFragment#removeFiles and sporadically "in the wild".

However, no solution offered so far

Signed-off-by: Philipp Hasper <vcs@hasper.info>
Before dismissing the dialog, we need to wait for a potentially pending
transaction. As showing the dialog also includes the dismissing of prior
instances, we need to wait there as well.
Both is needed to satisfy the test case added in the previous commit.

Otherwise, the dialog might be shown after it was meant to be dismissed
already. This issue was observed when testing RemoveFilesDialogFragment's
removeFiles() and also sporadically "in the wild".

Signed-off-by: Philipp Hasper <vcs@hasper.info>
@PhilLab PhilLab added the bug label Dec 29, 2025
@github-actions
Copy link

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

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.

2 participants