Skip to content

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Nov 18, 2025

  • 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 alperozturk96 force-pushed the fix/conflict-resolve-activity branch from 6c9ec7f to 60697bc Compare November 19, 2025 07:33
@github-actions
Copy link

@github-actions
Copy link

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

@github-actions
Copy link

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
Copy link

Codacy

SpotBugs

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

@alperozturk96 alperozturk96 marked this pull request as draft November 21, 2025 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants