From f90dbc83e2853717a3470f8e530a8a7e1c58b2e6 Mon Sep 17 00:00:00 2001 From: Tony Mantler Date: Wed, 9 Jul 2014 16:02:01 -0700 Subject: [PATCH] Strings aren't Integers b/16189015 Change-Id: Ife4383b5530956fcca7f7970691e9fdec32007ec --- .../android/email/activity/setup/AccountSettingsFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/activity/setup/AccountSettingsFragment.java b/src/com/android/email/activity/setup/AccountSettingsFragment.java index 69919fab0..9f5425259 100644 --- a/src/com/android/email/activity/setup/AccountSettingsFragment.java +++ b/src/com/android/email/activity/setup/AccountSettingsFragment.java @@ -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,