From: David A. Velasco Date: Wed, 19 Nov 2014 10:26:27 +0000 (+0100) Subject: Merge pull request #721 from owncloud/nea_upload_files X-Git-Tag: oc-android-1.7.0_signed~101 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/a98f14ecc3e97fc3a3eb6042dd5c0676f8504693?hp=d737103a779b94fbbd83823546a0a19c90a9f717 Merge pull request #721 from owncloud/nea_upload_files Fix upload of files from DocumentsProvider in Android > 4.4 --- diff --git a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java index d78fdc03..49259e9f 100644 --- a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -570,6 +570,11 @@ OnSslUntrustedCertListener, OnEnforceableRefreshListener { builder.setExpedited(true); builder.setManual(true); builder.syncOnce(); + + // Fix bug in Android Lollipop when you click on refresh the whole account + Bundle extras = new Bundle(); + builder.setExtras(extras); + SyncRequest request = builder.build(); ContentResolver.requestSync(request); }