Create the obsolete version of the belowing fragments, so we could flip between old page and new page. BluetoothSettingsObsolete and DeviceListPreferenceObsoleteFragment contains all the old logic but: 1. Logic about BluetoothPairingPreferenceController(ag/2239482), since this preference shouldn't be checked in without the flag :( This cl also adds logic in MasterSwitchPreferenceController to flip these two pages. Following cl will refactor these fragment to make it compatible to new framework. Bug: 35877041 Test: RunSettingsRoboTests Change-Id: I1cc1bc2d49d8a3e11c3127e56f6409fbc84028d8
55 lines
2.0 KiB
XML
55 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2016 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"
|
|
android:title="@string/connected_devices_dashboard_title">
|
|
|
|
<com.android.settings.widget.MasterSwitchPreference
|
|
android:key="toggle_bluetooth"
|
|
android:title="@string/bluetooth_settings_title"
|
|
android:icon="@drawable/ic_settings_bluetooth"
|
|
android:order="-7"/>
|
|
|
|
<SwitchPreference
|
|
android:key="toggle_nfc"
|
|
android:title="@string/nfc_quick_toggle_title"
|
|
android:icon="@drawable/ic_nfc"
|
|
android:summary="@string/nfc_quick_toggle_summary"
|
|
android:order="-5"/>
|
|
|
|
<com.android.settingslib.RestrictedPreference
|
|
android:fragment="com.android.settings.nfc.AndroidBeam"
|
|
android:key="android_beam_settings"
|
|
android:title="@string/android_beam_settings_title"
|
|
android:icon="@drawable/ic_android"
|
|
android:order="-4"/>
|
|
|
|
<Preference
|
|
android:key="usb_mode"
|
|
android:title="@string/usb_pref"
|
|
android:icon="@drawable/ic_usb"
|
|
android:order="-3">
|
|
<intent android:action="android.intent.action.MAIN"
|
|
android:targetPackage="com.android.settings"
|
|
android:targetClass="com.android.settings.deviceinfo.UsbModeChooserActivity"/>
|
|
</Preference>
|
|
|
|
<PreferenceCategory
|
|
android:key="dashboard_tile_placeholder"
|
|
android:order="50"/>
|
|
|
|
</PreferenceScreen> |