Make biometric setting toggles show dynamic auth types

Updates the preference toggles shown on the combined biometric settings
screen to indicate which types of biometric sensor (e.g. face and/or
fingerprint) each setting applies to. This is done by checking the
maximum registered strength for each type of sensor.

Test: Manual

Bug: 193714498
Bug: 201306569
Change-Id: I1f27bbe1fdd172ebc899c3c5f1daef9095b338bd
This commit is contained in:
Curtis Belmonte
2021-09-27 13:27:20 -07:00
parent 61e7977aaa
commit a9c582262e
6 changed files with 114 additions and 27 deletions

View File

@@ -43,8 +43,7 @@
</PreferenceCategory>
<PreferenceCategory
android:key="biometric_ways_to_use"
android:title="@string/biometric_settings_category_ways_to_use">
android:key="biometric_ways_to_use">
<com.android.settingslib.RestrictedSwitchPreference
android:key="biometric_settings_biometric_keyguard"

View File

@@ -43,8 +43,7 @@
</PreferenceCategory>
<PreferenceCategory
android:key="biometric_ways_to_use"
android:title="@string/biometric_settings_category_ways_to_use">
android:key="biometric_ways_to_use">
<SwitchPreference
android:key="biometric_settings_biometric_app_profile"