Repository navigation
fix(auto-upload): stop rescanning on every media change - #18156
Open
alperozturk96 wants to merge 1 commit into
Open
alperozturk96 wants to merge 1 commit into
alperozturk96 wants to merge 1 commit into
Conversation
Each MediaStore change made every auto upload worker scan its whole local folder again, although the content observer had already stored the changed files, and it also started a device-wide media folder detection. On large galleries this cost over a second of CPU per change and kept the device busy while uploads with the move action produced new changes. Folder detection still runs periodically and on app start. Bulk changes were ignored until the periodic rescan, because JobScheduler reports no changed uris when too many changed at once. Assisted-by: ClaudeCode:claude-opus-5-5
4 tasks done
4 tasks done
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
📱 QA build
The QA build installs alongside a released Nextcloud app, so you can keep Downloading the file requires a GitHub account, so open this link on the |
3 of 5 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
scanLocalFolderto auto upload worker to prevent un-necessary scan.triggeredContentAuthoritiesinstead oftriggeredContentUrisbecause: https://developer.android.com/reference/android/app/job/JobParameters#getTriggeredContentUris().startMediaFoldersDetectionJobfrom content observer its already periodic worker.overridePowerSaving = falsesince default parameter already false.🤖 AI (if applicable)