28010fe9fc
1. Generalize the code for the various spinners that control account check frequency. 2. Provide an API for looking up store attributes (and refactor existing instatiateStore logic to use it). 3. Cleanup the old code that was used to setup frequency spinners. 4. Hardwire Exchange accounts to default into push mode. Notes to tester: 1. For each account type (POP, IMAP, EAS) we need to check that auto & manual creation "do the right thing" for frequencies. POP & IMAP should offer "none" or time intervals, while EAS should offer "push", "none", or time intervals. 2. EAS accounts should default to "push", all others to "15 min" 3. Make sure that you can edit existing account settings and see the right choices (only EAS should be offered push). 4. I couldn't write an automated test for the mail checker service, please confirm that POP & IMAP accounts are checked at the right intervals (or never, if set for "none".) Original author: stadler Automated import of CL 145128
65 lines
2.7 KiB
XML
65 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2008 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<resources>
|
|
|
|
<!-- Do not change any of the values in this array without checking/changing -->
|
|
<!-- related values in: AccountSetupBasics.java & AccountSetupOptions.java -->
|
|
|
|
<!-- In particular, 15 minutes is hardcoded as the default for new accounts. -->
|
|
|
|
<string-array name="account_settings_check_frequency_entries">
|
|
<item>@string/account_setup_options_mail_check_frequency_never</item>
|
|
<item>@string/account_setup_options_mail_check_frequency_5min</item>
|
|
<item>@string/account_setup_options_mail_check_frequency_10min</item>
|
|
<item>@string/account_setup_options_mail_check_frequency_15min</item>
|
|
<item>@string/account_setup_options_mail_check_frequency_30min</item>
|
|
<item>@string/account_setup_options_mail_check_frequency_1hour</item>
|
|
</string-array>
|
|
|
|
<string-array name="account_settings_check_frequency_values" translatable="false">
|
|
<item>-1</item>
|
|
<item>5</item>
|
|
<item>10</item>
|
|
<item>15</item>
|
|
<item>30</item>
|
|
<item>60</item>
|
|
</string-array>
|
|
|
|
|
|
<!-- The arrays that are presented to push-enabled accounts -->
|
|
<string-array name="account_settings_check_frequency_entries_push">
|
|
<item>@string/account_setup_options_mail_check_frequency_push</item>
|
|
<item>@string/account_setup_options_mail_check_frequency_never</item>
|
|
<item>@string/account_setup_options_mail_check_frequency_5min</item>
|
|
<item>@string/account_setup_options_mail_check_frequency_10min</item>
|
|
<item>@string/account_setup_options_mail_check_frequency_15min</item>
|
|
<item>@string/account_setup_options_mail_check_frequency_30min</item>
|
|
<item>@string/account_setup_options_mail_check_frequency_1hour</item>
|
|
</string-array>
|
|
|
|
<string-array name="account_settings_check_frequency_values_push" translatable="false">
|
|
<item>-2</item>
|
|
<item>-1</item>
|
|
<item>5</item>
|
|
<item>10</item>
|
|
<item>15</item>
|
|
<item>30</item>
|
|
<item>60</item>
|
|
</string-array>
|
|
|
|
</resources>
|