Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Jan 27, 2026

Backport of PR #16296

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]>
@alperozturk96 alperozturk96 merged commit 841b86f into stable-3.35 Jan 27, 2026
9 of 18 checks passed
@alperozturk96 alperozturk96 deleted the backport/16296/stable-3.35 branch January 27, 2026 08:35
@github-actions
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16378.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.

@github-actions
Copy link

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

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