2009-03-04 03:32:22 +00:00
|
|
|
<?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.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
|
2011-07-22 22:15:47 +00:00
|
|
|
<EditTextPreference
|
|
|
|
android:key="account_description"
|
|
|
|
android:title="@string/account_settings_description_label"
|
|
|
|
android:summary=""
|
|
|
|
android:dialogTitle="@string/account_settings_description_label"
|
|
|
|
android:inputType="textCapWords" />
|
|
|
|
|
|
|
|
<EditTextPreference
|
|
|
|
android:key="account_name"
|
|
|
|
android:title="@string/account_settings_name_label"
|
|
|
|
android:summary=""
|
|
|
|
android:dialogTitle="@string/account_settings_name_label"
|
|
|
|
android:inputType="textPersonName|textCapWords" />
|
|
|
|
|
|
|
|
<EditTextPreference
|
|
|
|
android:key="account_signature"
|
|
|
|
android:title="@string/account_settings_signature_label"
|
|
|
|
android:summary="@string/account_settings_signature_hint"
|
|
|
|
android:dialogTitle="@string/account_settings_signature_label"
|
|
|
|
android:inputType="textCapSentences|textMultiLine" />
|
|
|
|
|
|
|
|
<PreferenceScreen
|
|
|
|
android:key="account_quick_responses"
|
|
|
|
android:title="@string/account_settings_edit_quick_responses_label"
|
|
|
|
android:summary="@string/account_settings_edit_quick_responses_summary" />
|
|
|
|
|
|
|
|
<CheckBoxPreference
|
|
|
|
android:key="account_default"
|
|
|
|
android:title="@string/account_settings_default_label"
|
|
|
|
android:summary="@string/account_settings_default_summary" />
|
2010-02-02 22:37:54 +00:00
|
|
|
|
2011-07-22 22:15:47 +00:00
|
|
|
<PreferenceCategory
|
|
|
|
android:key="data_usage"
|
|
|
|
android:title="@string/account_settings_data_usage">
|
2011-06-01 17:09:26 +00:00
|
|
|
|
2010-02-02 22:37:54 +00:00
|
|
|
<ListPreference
|
2009-03-04 03:32:22 +00:00
|
|
|
android:key="account_check_frequency"
|
2011-07-22 22:15:47 +00:00
|
|
|
android:order="1"
|
2009-03-04 03:32:22 +00:00
|
|
|
android:title="@string/account_settings_mail_check_frequency_label"
|
|
|
|
android:entries="@array/account_settings_check_frequency_entries"
|
|
|
|
android:entryValues="@array/account_settings_check_frequency_values"
|
|
|
|
android:dialogTitle="@string/account_settings_mail_check_frequency_label" />
|
|
|
|
|
2011-07-22 22:15:47 +00:00
|
|
|
<!-- Reserve order#2 here for window size (if inserted) -->
|
2010-11-05 04:13:45 +00:00
|
|
|
|
2011-07-22 22:15:47 +00:00
|
|
|
<CheckBoxPreference
|
|
|
|
android:key="account_sync_email"
|
2011-08-04 00:22:37 +00:00
|
|
|
android:order="3"
|
2011-07-22 22:15:47 +00:00
|
|
|
android:defaultValue="true"
|
|
|
|
android:title="@string/account_settings_sync_email_enable"
|
|
|
|
android:summary="@string/account_settings_sync_email_summary" />
|
|
|
|
<CheckBoxPreference
|
|
|
|
android:key="account_sync_contacts"
|
2011-08-04 00:22:37 +00:00
|
|
|
android:order="4"
|
2011-07-22 22:15:47 +00:00
|
|
|
android:defaultValue="true"
|
|
|
|
android:title="@string/account_settings_sync_contacts_enable"
|
|
|
|
android:summary="@string/account_settings_sync_contacts_summary" />
|
|
|
|
<CheckBoxPreference
|
|
|
|
android:key="account_sync_calendar"
|
2011-08-04 00:22:37 +00:00
|
|
|
android:order="5"
|
2011-07-22 22:15:47 +00:00
|
|
|
android:defaultValue="true"
|
|
|
|
android:title="@string/account_settings_sync_calendar_enable"
|
|
|
|
android:summary="@string/account_settings_sync_calendar_summary" />
|
2011-08-04 00:22:37 +00:00
|
|
|
|
|
|
|
<!-- (will hide on POP3 accounts) -->
|
|
|
|
<CheckBoxPreference
|
|
|
|
android:key="account_background_attachments"
|
|
|
|
android:order="6"
|
|
|
|
android:title="@string/account_settings_background_attachments_label"
|
|
|
|
android:summary="@string/account_settings_background_attachments_summary" />
|
|
|
|
|
2009-03-04 03:32:22 +00:00
|
|
|
</PreferenceCategory>
|
|
|
|
|
2010-11-05 04:13:45 +00:00
|
|
|
<PreferenceCategory
|
|
|
|
android:key="account_notifications"
|
|
|
|
android:title="@string/account_settings_notifications">
|
2009-03-04 03:32:22 +00:00
|
|
|
|
|
|
|
<CheckBoxPreference
|
|
|
|
android:key="account_notify"
|
|
|
|
android:title="@string/account_settings_notify_label"
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:summary="@string/account_settings_notify_summary" />
|
|
|
|
|
|
|
|
<RingtonePreference
|
2010-11-05 04:13:45 +00:00
|
|
|
android:key="account_ringtone"
|
2009-03-04 03:32:22 +00:00
|
|
|
android:layout="?android:attr/preferenceLayoutChild"
|
|
|
|
android:dependency="account_notify"
|
|
|
|
android:title="@string/account_settings_ringtone"
|
|
|
|
android:ringtoneType="notification"
|
|
|
|
android:defaultValue="content://settings/system/notification_sound" />
|
|
|
|
|
2010-03-17 01:08:52 +00:00
|
|
|
<ListPreference
|
2010-11-05 04:13:45 +00:00
|
|
|
android:key="account_settings_vibrate_when"
|
2009-03-04 03:32:22 +00:00
|
|
|
android:layout="?android:attr/preferenceLayoutChild"
|
|
|
|
android:dependency="account_notify"
|
2010-03-17 01:08:52 +00:00
|
|
|
android:defaultValue="never"
|
|
|
|
android:title="@string/account_settings_vibrate_when_label"
|
|
|
|
android:summary="@string/account_settings_vibrate_when_summary"
|
|
|
|
android:entries="@array/account_settings_vibrate_when_entries"
|
|
|
|
android:entryValues="@array/account_settings_vibrate_when_values"
|
|
|
|
android:dialogTitle="@string/account_settings_vibrate_when_dlg_title" />
|
2009-03-04 03:32:22 +00:00
|
|
|
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
2011-06-01 17:09:26 +00:00
|
|
|
<PreferenceCategory
|
2009-05-04 17:17:27 +00:00
|
|
|
android:key="account_servers"
|
|
|
|
android:title="@string/account_settings_servers">
|
2011-06-01 17:09:26 +00:00
|
|
|
|
2009-03-04 03:32:22 +00:00
|
|
|
<PreferenceScreen
|
|
|
|
android:key="incoming"
|
2011-02-16 22:19:34 +00:00
|
|
|
android:title="@string/account_settings_incoming_label"
|
|
|
|
android:summary="@string/account_settings_incoming_summary" />
|
2009-03-04 03:32:22 +00:00
|
|
|
|
|
|
|
<PreferenceScreen
|
|
|
|
android:key="outgoing"
|
2011-02-16 22:19:34 +00:00
|
|
|
android:title="@string/account_settings_outgoing_label"
|
|
|
|
android:summary="@string/account_settings_outgoing_summary" />
|
2009-03-04 03:32:22 +00:00
|
|
|
</PreferenceCategory>
|
|
|
|
|
Rewrite of security policy handling and service code
* Remove PolicyService APIs policiesRequired, policiesUpdated,
isSupported, clearUnsupportedPolicies, and isActiveAdmin
* Add PolicyService API setAccountPolicy, which is the sole
method by which security policies are promulgated
* Add protocolPoliciesEnabled and protocolPoliciesUnsupported
to the Policy class; these are packed, localized strings
indicating policies that the protocol itself have enabled
and/or cannot support (i.e. these are policies that are
unknown to the DPM, e.g. don't load attachments)
* Differentiate in security notifications between three kinds
of policy changes - changes that don't require user
intervention (e.g. reducing requirements), changes that
require user intervention (the legacy notification), and
changes that make the account unsyncable (e.g. the server
adding an unsupportable policy). Handle all possible policy
changes cleanly.
* Make security notifications per account (with multiple
accounts, notifications would get arbitrarily munged)
* Expose ALL enforced policies via the account settings
screen in two categories: policies enforced (including
both policies enforced by the DPM and policies enforced
by the protocol) and policies unsupported (note that these
can only be seen if policies are changed after an account
is created; we do not allow the creation of an account
when any required policies are unsupported). Add a
button that forces a sync attempt, for accounts that
are locked out, but whose policies have changed on
the server (this would otherwise require a reboot).
* Updated unit tests
Bug: 5398682
Bug: 5393724
Bug: 5379682
Change-Id: I4a3df823913a809874ed959d228177f0fc799281
2011-10-20 17:13:02 +00:00
|
|
|
<PreferenceCategory
|
|
|
|
android:key="account_policies"
|
|
|
|
android:title="@string/account_settings_policies">
|
|
|
|
|
|
|
|
<com.android.email.activity.setup.PolicyListPreference
|
|
|
|
android:key="policies_enforced"
|
|
|
|
android:title="@string/account_settings_enforced_label"
|
|
|
|
android:summary="@string/account_settings_enforced_summary" />
|
|
|
|
|
|
|
|
<com.android.email.activity.setup.PolicyListPreference
|
|
|
|
android:key="policies_unsupported"
|
|
|
|
android:title="@string/account_settings_unsupported_label"
|
|
|
|
android:summary="@string/account_settings_unsupported_summary" />
|
|
|
|
|
|
|
|
<Preference
|
|
|
|
android:key="policies_retry_account"
|
|
|
|
android:title="@string/account_settings_retry_label"
|
|
|
|
android:summary="@string/account_settings_retry_summary" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
2010-08-19 23:28:52 +00:00
|
|
|
<PreferenceCategory
|
|
|
|
android:title="@string/account_settings_category_delete_account">
|
|
|
|
|
|
|
|
<PreferenceScreen
|
|
|
|
android:key="delete_account"
|
|
|
|
android:title="@string/account_settings_delete_account_label" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
2009-03-04 03:32:22 +00:00
|
|
|
</PreferenceScreen>
|