Skip to content

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

Merged
alperozturk96 merged 17 commits into
masterfrom
feat/remove-retrieve-last-version
Oct 30, 2026
Merged

alperozturk96 merged 17 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 908a7e3
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

@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

@alperozturk96
alperozturk96 force-pushed the feat/remove-retrieve-last-version branch from 9bf50de to 43db26c Compare October 6, 2026 07:14
@alperozturk96
alperozturk96 marked this pull request as ready for review October 6, 2026 08:40
@alperozturk96
alperozturk96 force-pushed the feat/remove-retrieve-last-version branch from 5493405 to 15d4dbb Compare October 28, 2026 11:40

@daniele-verducci daniele-verducci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The app feels very fast after this change! Opening any downloaded file is very snappy!

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>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt
…lse skip.

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

# Conflicts:
#	app/src/main/java/com/nextcloud/utils/extensions/OCFileExtensions.kt
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>
…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>
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 15d4dbb to 4b6a7b0 Compare October 30, 2026 11:40
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@github-actions

Copy link
Copy Markdown

SpotBugs

CategoryBaseNew
Bad practice2424
Correctness4545
Dodgy code146146
Experimental11
Malicious code vulnerability11
Multithreaded correctness1813
Performance2828
Security1515
Total278273

@alperozturk96
alperozturk96 merged commit 593d7e0 into master Oct 30, 2026
25 checks passed
@alperozturk96
alperozturk96 deleted the feat/remove-retrieve-last-version branch October 30, 2026 12:20
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"

2 participants