Skip to content

Conversation

@PhilLab
Copy link
Contributor

@PhilLab PhilLab commented Jan 15, 2026

Original PR: #16145

  • 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

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 <[email protected]>
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 <[email protected]>
…sion

Before that, when starting individual tests from the command line or from
inside the IDE, they could fail because a dialog asking for the permission
to post notifications was blocking the view.

While we are on it, added a small explanation to the other existing rule.
Without that explanation it might be unclear why this is not also done via
the same GrantPermissionRule used for the notifications.

Signed-off-by: Philipp Hasper <[email protected]>
@github-actions
Copy link

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions
Copy link

Codacy

SpotBugs

CategoryBaseNew
Bad practice4343
Correctness7474
Dodgy code257257
Experimental11
Internationalization77
Malicious code vulnerability33
Multithreaded correctness3434
Performance4444
Security1818
Total481481

@github-actions
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16296.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

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