Code cleanup, do not backup some shared preference keys.

This commit is contained in:
Jimmy Shih
2013-05-23 10:32:10 -07:00
parent cad06c712a
commit 8b19bd8917
3 changed files with 21 additions and 18 deletions
@@ -86,14 +86,7 @@ public class EnableSyncDialogFragment extends DialogFragment {
}
}).setPositiveButton(R.string.generic_yes, new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
/*
* google_account_key can be set from the android backup service. If
* the user wants to enable sync, make sure google_account_key is
* cleared so the user can choose an account.
*/
PreferencesUtils.setString(fragmentActivity, R.string.google_account_key,
PreferencesUtils.GOOGLE_ACCOUNT_DEFAULT);
public void onClick(DialogInterface dialog, int which) {
caller.onEnableSyncDone(true);
}
}).setTitle(R.string.enable_sync_title).create();