Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5208 Remove double check in FileContentProvider #5257

Open
wants to merge 1 commit into
base: optimization
Choose a base branch
from

Conversation

JorisBodin
Copy link
Member

@JorisBodin JorisBodin commented Jan 20, 2020

I have remove doubleCheck if insert file. Issue: #5208
syncAndUpdateFolder is called twice on the first time the application is started, the WRITE_EXTERNAL_STORAGE permission is requested. syncAndUpdateFolder is remove in onRequestPermissionsResult
And I added a synchronized for saveFolder and saveFile, because we're already checking if the file already exists. I check this with syncAndUpdateFolder called twice

Remove double call "syncAndUpdateFolder" and synchronized method insert file

Signed-off-by: Joris Bodin <[email protected]>
@nextcloud-android-bot
Copy link
Collaborator

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/12350.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

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.

2 participants