From f2a5226c1e981ebb0c34aaf39524c382f996196a Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Thu, 17 Apr 2014 17:20:27 -0700 Subject: Improve Preference highlighting - 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 --- res/xml/security_settings_biometric_weak.xml | 2 +- res/xml/security_settings_chooser.xml | 2 +- res/xml/security_settings_encrypted.xml | 8 +++---- res/xml/security_settings_lockscreen.xml | 2 +- res/xml/security_settings_misc.xml | 20 +++++++++-------- res/xml/security_settings_nfc_unlock.xml | 33 ++++++++++++++-------------- res/xml/security_settings_password.xml | 2 +- res/xml/security_settings_pin.xml | 2 +- 8 files changed, 37 insertions(+), 34 deletions(-) (limited to 'res') diff --git a/res/xml/security_settings_biometric_weak.xml b/res/xml/security_settings_biometric_weak.xml index c2e8ab7cb..98916a1e0 100644 --- a/res/xml/security_settings_biometric_weak.xml +++ b/res/xml/security_settings_biometric_weak.xml @@ -56,8 +56,8 @@ android:title="@string/security_enable_widgets_title"/> diff --git a/res/xml/security_settings_chooser.xml b/res/xml/security_settings_chooser.xml index 1a5431593..3d2ceabb8 100644 --- a/res/xml/security_settings_chooser.xml +++ b/res/xml/security_settings_chooser.xml @@ -31,8 +31,8 @@ android:title="@string/security_enable_widgets_title"/> diff --git a/res/xml/security_settings_encrypted.xml b/res/xml/security_settings_encrypted.xml index e82dc5610..37452f632 100644 --- a/res/xml/security_settings_encrypted.xml +++ b/res/xml/security_settings_encrypted.xml @@ -18,13 +18,13 @@ + android:title="@string/crypt_keeper_settings_title"> + + android:summary="@string/crypt_keeper_encrypted_summary"/> diff --git a/res/xml/security_settings_lockscreen.xml b/res/xml/security_settings_lockscreen.xml index eb40bd8bb..27586e18d 100644 --- a/res/xml/security_settings_lockscreen.xml +++ b/res/xml/security_settings_lockscreen.xml @@ -31,8 +31,8 @@ android:title="@string/security_enable_widgets_title"/> diff --git a/res/xml/security_settings_misc.xml b/res/xml/security_settings_misc.xml index 58f92d875..84ce96cf4 100644 --- a/res/xml/security_settings_misc.xml +++ b/res/xml/security_settings_misc.xml @@ -20,7 +20,8 @@ android:title="@string/sim_lock_settings_title" android:persistent="false"> - - - - - - @@ -88,7 +90,7 @@ android:targetClass="com.android.certinstaller.CertInstallerMain"/> - diff --git a/res/xml/security_settings_nfc_unlock.xml b/res/xml/security_settings_nfc_unlock.xml index c3442c604..63e5a7487 100644 --- a/res/xml/security_settings_nfc_unlock.xml +++ b/res/xml/security_settings_nfc_unlock.xml @@ -16,27 +16,28 @@ - + + + android:key="nfc_unlock_enabled" + android:title="@string/nfc_unlock_enabled" + android:persistent="false" /> - + android:key="nfc_pairing" + android:title="@string/start_nfc_pairing" + android:persistent="false" + android:dependency="nfc_unlock_enabled" > + - - + - + + diff --git a/res/xml/security_settings_password.xml b/res/xml/security_settings_password.xml index a102efa9c..4ec7a0dc2 100644 --- a/res/xml/security_settings_password.xml +++ b/res/xml/security_settings_password.xml @@ -43,8 +43,8 @@ android:title="@string/security_enable_widgets_title"/> diff --git a/res/xml/security_settings_pin.xml b/res/xml/security_settings_pin.xml index 1417e2178..bc3b76c02 100644 --- a/res/xml/security_settings_pin.xml +++ b/res/xml/security_settings_pin.xml @@ -43,8 +43,8 @@ android:title="@string/security_enable_widgets_title"/> -- cgit v1.2.3