From fea19cf487971ef4b44e27e77ae6e20f7e1be166 Mon Sep 17 00:00:00 2001 From: Xiaowen Lei Date: Wed, 1 Mar 2023 21:28:37 +0000 Subject: [PATCH] Fix sysui-studio build broken by ag/21408305. This CL fixes the following sysui-studio build error: ``` Execution failed for task ':SystemUILib:packageDebugResources'. > /usr/local/google/home/xilei/android_platform/tm-qpr-dev/frameworks/base/packages/SystemUI/res/values/strings.xml: Error: Found item String/security_settings_sfps_enroll_find_sensor_message more than one time ``` Looks like these need to be in res-product/ instead of res/, in order for the filtering script to work. Filtering script: studio-dev/SysUIGradleProject/buildSrc/src/main/groovy/FilterResourcesTask.groovy Bug: 236188940 Bug: 267407905 Test: build in sysui-studio. Test: build with `m` Change-Id: Ia940c0d6f68ddd793aa7d27ea33f33fffcabce47 --- packages/SystemUI/res-product/values/strings.xml | 9 +++++++++ packages/SystemUI/res/values/strings.xml | 6 ------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/SystemUI/res-product/values/strings.xml b/packages/SystemUI/res-product/values/strings.xml index b71caef3f5931..87b206ce57acf 100644 --- a/packages/SystemUI/res-product/values/strings.xml +++ b/packages/SystemUI/res-product/values/strings.xml @@ -122,6 +122,12 @@ Try again in %3$d seconds. + + The fingerprint sensor is on the power button. It’s the flat button next to the raised volume button on the edge of the tablet.\n\nPressing the power button turns off the screen. + + The fingerprint sensor is on the power button. It’s the flat button next to the raised volume button on the edge of the device.\n\nPressing the power button turns off the screen. + + The fingerprint sensor is on the power button. It’s the flat button next to the raised volume button on the edge of the phone.\n\nPressing the power button turns off the screen. Unlock your phone for more options @@ -134,4 +140,7 @@ Playing on this phone Playing on this tablet + + + diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 4ab0d01944f8d..8be599867eb4b 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -405,12 +405,6 @@ Touch the fingerprint sensor - - The fingerprint sensor is on the power button. It’s the flat button next to the raised volume button on the edge of the tablet.\n\nPressing the power button turns off the screen. - - The fingerprint sensor is on the power button. It’s the flat button next to the raised volume button on the edge of the device.\n\nPressing the power button turns off the screen. - - The fingerprint sensor is on the power button. It’s the flat button next to the raised volume button on the edge of the phone.\n\nPressing the power button turns off the screen. Can\u2019t recognize face. Use fingerprint instead.