android icon indicating copy to clipboard operation
android copied to clipboard

fix: conflict resolve activity

Open alperozturk96 opened this issue 3 months ago • 4 comments

  • [x] Tests written, or not not needed

Fixes

Fixes existingFile initialization previously, EXTRA_EXISTING_FILE was never set, causing existingFile to always have a file ID of -1L. With this PR, existingFile is properly initialized, ensuring correct file references throughout the flow.

Removes newFile to simplify logic, the newFile variable was misleading, it actually referred to a file from FileActivity. File refers to the newly selected file from local storage.

Fixes keepLocal behavior. keepLocal must just do, removes the existing remote file and uploads the newly selected local file. Thus, thumbnail and preview of the new file will appear correctly.

alperozturk96 avatar Nov 18 '25 14:11 alperozturk96

test-Unit test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/15983-Unit-test-10-28

github-actions[bot] avatar Nov 19 '25 10:11 github-actions[bot]

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

github-actions[bot] avatar Nov 19 '25 10:11 github-actions[bot]

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/15983.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[bot] avatar Nov 19 '25 10:11 github-actions[bot]

Codacy

SpotBugs

CategoryBaseNew
Bad practice4242
Correctness7373
Dodgy code272272
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness3535
Performance4848
Security1818
Total498498

github-actions[bot] avatar Nov 19 '25 10:11 github-actions[bot]