From 9134f24f3166f5afabe6cdd54a50ad63e5234d3a Mon Sep 17 00:00:00 2001 From: Derek Jedral Date: Tue, 24 Jan 2023 22:00:01 -0800 Subject: [PATCH] Update text when Active Unlock is enabled. Update the security summary, intro, and unlock your phone summary when Active Unlock is enabled and enrolled on the device. Test: make RunSettingsRoboTests Test: manually flip flags, confirm combined page has updated strings Bug: 264812018 Change-Id: I2843e9f3aa0f38a9f2ebb18d60fed6293f9ce36e --- .../security_settings_combined_biometric.xml | 1 + .../ActiveUnlockDeviceNameListener.java | 48 ++++++++++ .../activeunlock/ActiveUnlockStatusUtils.java | 78 +++++++++++++++++ .../combination/BiometricsSettingsBase.java | 14 +-- .../CombinedBiometricSettings.java | 56 ++++++++++++ .../ActiveUnlockStatusUtilsTest.java | 87 +++++++++++++++++++ .../activeunlock/FakeContentProvider.java | 9 ++ 7 files changed, 288 insertions(+), 5 deletions(-) create mode 100644 src/com/android/settings/biometrics/activeunlock/ActiveUnlockDeviceNameListener.java diff --git a/res/xml/security_settings_combined_biometric.xml b/res/xml/security_settings_combined_biometric.xml index 4476281440c..1bbe7b3901e 100644 --- a/res/xml/security_settings_combined_biometric.xml +++ b/res/xml/security_settings_combined_biometric.xml @@ -20,6 +20,7 @@ android:title="@string/security_settings_biometric_preference_title">