fix: conflict resolve activity
- [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.
test-Unit test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/15983-Unit-test-10-28
blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/15983.apk
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.