Strings aren't Integers

b/16189015

Change-Id: Ife4383b5530956fcca7f7970691e9fdec32007ec
This commit is contained in:
Tony Mantler 2014-07-09 16:02:01 -07:00
parent 4fb5412e1b
commit f90dbc83e2

View File

@ -347,7 +347,7 @@ public class AccountSettingsFragment extends MailAccountPrefsFragment
// numeric value we have stored says.
final android.accounts.Account androidAcct = new android.accounts.Account(
mAccount.mEmailAddress, mServiceInfo.accountType);
if ((Integer) newValue == Account.CHECK_INTERVAL_NEVER) {
if (Integer.parseInt(summary) == Account.CHECK_INTERVAL_NEVER) {
// Disable syncing from the account manager. Leave the current sync frequency
// in the database.
ContentResolver.setSyncAutomatically(androidAcct, EmailContent.AUTHORITY,