- use PreferenceFragment.onBindPreferences() to launch highlighting - improve SettingsPreferenceFragment code for highlighting: now we can find the View to highlight thru its Tag if there is no ListAdapter available - add HighlightingFragment for highlighting a View from its tag/key. This is dealing with cases when the content is custom and not relying on SettingsPreferenceFragment (like DataUsageSummary) Also: - improve DataUsageSummary so that onResume() is not recreating the Tabs all the time - add missing "android:keys" on some Security Settings preference files Change-Id: Ib1dd8238fe2fb57c151d584c0810a0e0a5ad97c4
44 lines
1.5 KiB
XML
44 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2013 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">
|
|
|
|
<PreferenceCategory
|
|
android:key="security_category"
|
|
android:title="@string/lock_settings_nfc_title">
|
|
|
|
<CheckBoxPreference
|
|
android:key="nfc_unlock_enabled"
|
|
android:title="@string/nfc_unlock_enabled"
|
|
android:persistent="false" />
|
|
|
|
<Preference
|
|
android:key="nfc_pairing"
|
|
android:title="@string/start_nfc_pairing"
|
|
android:persistent="false"
|
|
android:dependency="nfc_unlock_enabled" >
|
|
<intent android:action="android.settings.PAIR_NFC_DEVICE"/>
|
|
</Preference>
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:key="nfc_unlock_tags_category"
|
|
android:title="@string/nfc_unlock_paired_tags_title">
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|