Fix crash in Android Lollipop when cliking on refresh the whole account

This commit is contained in:
jabarros 2014-11-17 14:07:48 +01:00
parent 3f5b3f0d1d
commit 6224f73544

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);
}