From 63a22008c7b71675ab6d4c0526556a81a2c60632 Mon Sep 17 00:00:00 2001 From: Andy Stadler Date: Wed, 6 May 2009 17:46:25 -0700 Subject: [PATCH] AI 148376: Two policy changes for lookback window: (1) Change default for new accounts to "1 day". (2) Remove "all" from the list of available lookback window sizes, to prevent runaway during our simplistic sync model. BUG=1789913 Automated import of CL 148376 --- res/values/arrays.xml | 7 ++++--- .../email/activity/setup/AccountSetupAccountType.java | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/res/values/arrays.xml b/res/values/arrays.xml index b1354c56c..af5aadb8d 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -61,23 +61,24 @@ 60 - + + @string/account_setup_options_mail_window_1day @string/account_setup_options_mail_window_3days @string/account_setup_options_mail_window_1week @string/account_setup_options_mail_window_2weeks @string/account_setup_options_mail_window_1month - @string/account_setup_options_mail_window_all + + 1 2 3 4 5 - 6 diff --git a/src/com/android/email/activity/setup/AccountSetupAccountType.java b/src/com/android/email/activity/setup/AccountSetupAccountType.java index 335d639ca..addf1e8b5 100644 --- a/src/com/android/email/activity/setup/AccountSetupAccountType.java +++ b/src/com/android/email/activity/setup/AccountSetupAccountType.java @@ -127,7 +127,7 @@ public class AccountSetupAccountType extends Activity implements OnClickListener // TODO: Confirm correct delete policy for exchange mAccount.setDeletePolicy(Account.DELETE_POLICY_ON_DELETE); mAccount.setAutomaticCheckIntervalMinutes(Account.CHECK_INTERVAL_PUSH); - mAccount.setSyncWindow(Account.SYNC_WINDOW_3_DAYS); + mAccount.setSyncWindow(Account.SYNC_WINDOW_1_DAY); AccountSetupExchange.actionIncomingSettings(this, mAccount, mMakeDefault); finish(); }