Merge "Update string for acquire msg FINGERPRINT_ACQUIRED_IMAGER_DIRTY on UDFPS devices" into main
This commit is contained in:
@@ -13183,4 +13183,7 @@
|
||||
<string name="force_swcrypto_fallback_title">Force Software Secure Crypto</string>
|
||||
<!-- Developer settings summary: select to force Software Secure Crypto.[CHAR LIMIT=NONE] -->
|
||||
<string name="force_swcrypto_fallback_summary">Force DRM key management to use software-based whitebox crypto</string>
|
||||
|
||||
<!--Text for acquire msg on UDFPS devices -->
|
||||
<string name="fingerprint_acquired_imager_dirty_udfps">Clean your screen near the sensor and try again</string>
|
||||
</resources>
|
||||
|
@@ -17,6 +17,7 @@
|
||||
package com.android.settings.biometrics.fingerprint;
|
||||
|
||||
import static android.hardware.biometrics.BiometricAuthenticator.TYPE_FINGERPRINT;
|
||||
import static android.hardware.biometrics.BiometricFingerprintConstants.FINGERPRINT_ACQUIRED_IMAGER_DIRTY;
|
||||
import static android.text.Layout.HYPHENATION_FREQUENCY_NONE;
|
||||
|
||||
import android.animation.Animator;
|
||||
@@ -770,10 +771,15 @@ public class FingerprintEnrollEnrolling extends BiometricsEnrollEnrolling {
|
||||
|
||||
@Override
|
||||
public void onEnrollmentHelp(int helpMsgId, CharSequence helpString) {
|
||||
final CharSequence featuredString = mCanAssumeSfps
|
||||
CharSequence featuredString = mCanAssumeSfps
|
||||
? mSfpsEnrollmentFeature.getFeaturedVendorString(this, helpMsgId, helpString)
|
||||
: helpString;
|
||||
|
||||
if (helpMsgId == FINGERPRINT_ACQUIRED_IMAGER_DIRTY && mCanAssumeUdfps) {
|
||||
featuredString = getResources().getString(
|
||||
R.string.fingerprint_acquired_imager_dirty_udfps);
|
||||
}
|
||||
|
||||
if (!TextUtils.isEmpty(featuredString)) {
|
||||
if (!(mCanAssumeUdfps || mCanAssumeSfps)) {
|
||||
mErrorText.removeCallbacks(mTouchAgainRunnable);
|
||||
|
Reference in New Issue
Block a user