Merge pull request #736 from owncloud/fix_refresh_account_lollipop

Fix 'refresh account' action in Lollipop
This commit is contained in:
David A. Velasco 2014-11-19 10:50:36 +01:00
commit 3aed2954f3

View file

@ -563,6 +563,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);
}