Skip to content

feat(open-file): remove syncing dialog - #17725

Open
alperozturk96 wants to merge 13 commits into
masterfrom
feat/remove-retrieve-last-version
Open

alperozturk96 wants to merge 13 commits into
masterfrom
feat/remove-retrieve-last-version

Conversation

@alperozturk96

@alperozturk96 alperozturk96 commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Implements: #17574

Test scenarios: opening a file from the file list

"Changed" means the file was edited on the web and the app noticed it during the folder refresh. To get there: edit the file on the web, stay in the folder and wait ~15s before tapping.

# Tapped file in the file list Before After
1 Image that isn't downloaded, unchanged Preview opens, sometimes after a server check Preview opens immediately, no dialog
2 Image that isn't downloaded, changed Loading dialog while the full image downloads, then preview Preview opens immediately with the resized image, no dialog
3 Downloaded text file, unchanged Preview opens, sometimes after a server check Preview opens immediately, no dialog
4 Downloaded text file, changed Loading dialog while syncing, then preview Syncs in the background, then preview shows the new content, no dialog
5 Downloaded text file, changed on the web and edited locally (conflict) Loading dialog, then conflict screen Conflict screen opens, no dialog
6 Audio file that is still downloading, changed Loading dialog while syncing, then player Syncs in the background, then player opens, no dialog
7 Downloaded pdf, docx or other file, unchanged Loading dialog and full sync on every tap, then external app External app opens immediately, no dialog
8 Downloaded pdf, docx or other file, changed Loading dialog while syncing, then external app Syncs in the background, then external app opens the new version, no dialog
9 Downloaded pdf, docx or other file, conflict Loading dialog, then conflict screen Conflict screen opens, no dialog

@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit 42b089c
Version 17725
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

@codecov

codecov Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Comment thread app/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java Outdated
Comment thread app/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java Outdated
@alperozturk96
alperozturk96 marked this pull request as draft October 5, 2026 09:39
@alperozturk96
alperozturk96 force-pushed the feat/remove-retrieve-last-version branch 2 times, most recently from d25e2b2 to a4cfa38 Compare October 5, 2026 10:02
@nextcloud nextcloud deleted a comment from github-actions Bot Oct 5, 2026
@alperozturk96

alperozturk96 commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator Author

If I try to open the .md file from file list, it triggers the public void startSyncForFileAndIntent(OCFile file, Intent intent) are we going to check that logic as well?

Because internally it still calls

private void syncFileOrFolder(OCFile file, User user, FileDataStorageManager storageManager) thus R.string.sync_in_progress will be shown.

Apparently openFile functions is not the only one. @tobiasKaminsky

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
…lse skip.

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
…e visible to other threads)

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96
alperozturk96 force-pushed the feat/remove-retrieve-last-version branch from 9bf50de to 43db26c Compare October 6, 2026 07:14
…mageWithSearchContext

       Downloaded text file via -> fileOnItemClick -> previewFile -> startTextPreview
       Downloaded audio file via > fileOnItemClick -> previewFile -> startAudioPreview

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96
alperozturk96 marked this pull request as ready for review October 6, 2026 08:40
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Codacy

SpotBugs

CategoryBaseNew
Bad practice3030
Correctness5454
Dodgy code177177
Experimental11
Malicious code vulnerability22
Multithreaded correctness2621
Performance3535
Security1616
Total341336

private void syncAndOpenFile(OCFile file, Intent openFileWithIntent) {
User user = currentAccount.getUser();
final var storageManager = new FileDataStorageManager(user, fileActivity.getContentResolver());
if (isDownloadedAndUpToDate(storageManager.getFileById(file.getFileId()))) {

@alperozturk96 alperozturk96 Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Only locally checks not goes to server to check eTag. @tobiasKaminsky

This branch has not been deployed

No deployments
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.

Remove "retrieve last version"

1 participant