Skip to content

Commit

Permalink
Fixed issue 15069
Browse files Browse the repository at this point in the history
Fixed the OnSyncStateUpdated() method so that the
checkbox gets checked/unchecked properly

Change-Id: I923dd20cdd01f218e2efd900adfbeed0b981993d
  • Loading branch information
ardevd authored and hyperb1iss committed Apr 9, 2011
1 parent 7c7d0e5 commit ca353c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/android/settings/ManageAccountsSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ protected void onSyncStateUpdated() {
// Set background connection state
ConnectivityManager connManager =
(ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
boolean backgroundDataSetting = connManager.getBackgroundDataSetting();
boolean backgroundDataSetting = mBackgroundDataCheckBox.isChecked();
mBackgroundDataCheckBox.setChecked(backgroundDataSetting);
boolean masterSyncAutomatically = ContentResolver.getMasterSyncAutomatically();
mAutoSyncCheckbox.setChecked(masterSyncAutomatically);
Expand Down

0 comments on commit ca353c5

Please sign in to comment.