Skip to content

Conversation

@tobiasKaminsky
Copy link
Member

@tobiasKaminsky tobiasKaminsky commented Jan 9, 2026

Original PR: #16188

  • Tests written, or not not needed

This tests the changes of #15925, where the old behavior of moving up to the root folder was changed to stay in the parent folder of the file(s) to move/copy.
The new behavior is in sync with iOS and the Web UI, hence this test ensures it doesn't break

activity.supportFragmentManager.executePendingTransactions()

fragment.listDirectory(testFolder, false)
activity.supportFragmentManager.executePendingTransactions()
Copy link
Collaborator

Choose a reason for hiding this comment

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

The first activity.supportFragmentManager.executePendingTransactions() is needed after adding fragment other two is not needed because we are not showing another fragment via listDirectory or onFileActionChosen(R.id.action_move_or_copy, setOf(testFile))

When I tested with only first one it worked as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

@alperozturk96 thanks, I removed them.

This tests the changes of #15925, where the old behavior of moving up to
the root folder was changed to stay in the parent folder of the file(s)
to move/copy.
The new behavior is in sync with iOS and the Web UI, hence this test
ensures it doesn't break

Signed-off-by: Philipp Hasper <vcs@hasper.info>
@PhilLab PhilLab force-pushed the test_15925_move_or_copy_start_in_parent branch from 9445d8c to 54e9c43 Compare January 15, 2026 08:20
Signed-off-by: Philipp Hasper <vcs@hasper.info>
@PhilLab PhilLab requested a review from alperozturk96 January 15, 2026 08:21
@PhilLab PhilLab self-assigned this Jan 15, 2026
@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/16262.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.

@alperozturk96 alperozturk96 merged commit 24e7455 into master Jan 15, 2026
19 of 21 checks passed
@alperozturk96 alperozturk96 deleted the test_15925_move_or_copy_start_in_parent branch January 15, 2026 08:41
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.

4 participants