Skip to content

feat: enable auto-sync for file access via Storage Access Framework (SAF). #89 v2#108

Open
guruz wants to merge 2 commits intomainfrom
pr_89_fixup
Open

feat: enable auto-sync for file access via Storage Access Framework (SAF). #89 v2#108
guruz wants to merge 2 commits intomainfrom
pr_89_fixup

Conversation

@guruz
Copy link
Contributor

@guruz guruz commented Mar 11, 2026

FYI @edo-bari-ikutsu

The thing I don't like about my change is that it creates some delays because it does a lot of PROPFINDs (triggered by OS or used app) via openDocument

@guruz
Copy link
Contributor Author

guruz commented Mar 11, 2026

@streaminganger Do you want me to create a test build for you and you say if it's good enough?
It should be fast for not-yet-downloaded-files but possibly slower(because it checks server several times) for existing files.

@streaminganger
Copy link

@streaminganger Do you want me to create a test build for you and you say if it's good enough? It should be fast for not-yet-downloaded-files but possibly slower(because it checks server several times) for existing files.

No harm. happy to test.

…pies

The previous implementation fired SynchronizeFileUseCase asynchronously
and polled isAvailableLocally. For files that were already downloaded but
outdated on the server, isAvailableLocally was already true from the old
copy, so the poll exited immediately and served the stale file.

Call SynchronizeFileUseCase synchronously and act on its result: when a
download is enqueued, poll the WorkManager job state until it completes.
This also detects download failures (FAILED/CANCELLED) and returns early
instead of polling indefinitely.
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