Move global sync settings to AccountSettings.

It also makes AccountSettings respond to the SYNC_SETTINGS intent, which
it is currently triggered by Calendar and could be triggered by Gmail.

Bug: 16076571
Change-Id: I2c55262a87e46ba88f36a90a2f8f27d08f88e851
This commit is contained in:
Alexandra Gherghina
2014-07-09 09:30:18 +01:00
parent ff795ffba8
commit 64fde6f4e9
9 changed files with 134 additions and 240 deletions

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 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.
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/account_settings_menu_auto_sync"
android:title="@string/account_settings_menu_auto_sync"
android:checkable="true" />
<item
android:id="@+id/account_settings_menu_auto_sync_personal"
android:title="@string/account_settings_menu_auto_sync_personal"
android:checkable="true" />
<item
android:id="@+id/account_settings_menu_auto_sync_work"
android:title="@string/account_settings_menu_auto_sync_work"
android:checkable="true" />
</menu>