am f9757504
: Merge "Reload settings immediately after toggling sync" into ub-gmail-ur14-dev
* commit 'f9757504b605942bcf1331ed98d211b1aa87dd0d': Reload settings immediately after toggling sync
This commit is contained in:
commit
06e38818a7
@ -367,16 +367,19 @@ public class AccountSettingsFragment extends MailAccountPrefsFragment
|
||||
mAccount.mEmailAddress, mServiceInfo.accountType);
|
||||
ContentResolver.setSyncAutomatically(androidAcct, EmailContent.AUTHORITY,
|
||||
(Boolean) newValue);
|
||||
loadSettings();
|
||||
} else if (key.equals(PREFERENCE_SYNC_CONTACTS)) {
|
||||
final android.accounts.Account androidAcct = new android.accounts.Account(
|
||||
mAccount.mEmailAddress, mServiceInfo.accountType);
|
||||
ContentResolver.setSyncAutomatically(androidAcct, ContactsContract.AUTHORITY,
|
||||
(Boolean) newValue);
|
||||
loadSettings();
|
||||
} else if (key.equals(PREFERENCE_SYNC_CALENDAR)) {
|
||||
final android.accounts.Account androidAcct = new android.accounts.Account(
|
||||
mAccount.mEmailAddress, mServiceInfo.accountType);
|
||||
ContentResolver.setSyncAutomatically(androidAcct, CalendarContract.AUTHORITY,
|
||||
(Boolean) newValue);
|
||||
loadSettings();
|
||||
} else if (key.equals(PREFERENCE_BACKGROUND_ATTACHMENTS)) {
|
||||
int newFlags = mAccount.getFlags() & ~(Account.FLAGS_BACKGROUND_ATTACHMENTS);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user