Update UDFPS fingerprint enrollment
1) Update UDFPS FindSensor to more of an EDU flow 2) Update UDFPS enrolling page to announce strings properly Bug: 187460696 Test: manual Change-Id: I30a77bd6bba911afb82e158d5e9f35b644ec880d
This commit is contained in:
@@ -175,20 +175,28 @@ public abstract class BiometricEnrollBase extends InstrumentedActivity {
|
||||
layoutTitle.setAccessibilityLiveRegion(View.ACCESSIBILITY_LIVE_REGION_POLITE);
|
||||
}
|
||||
getLayout().setHeaderText(title);
|
||||
getLayout().getHeaderTextView().setContentDescription(title);
|
||||
setTitle(title);
|
||||
}
|
||||
}
|
||||
|
||||
protected void setHeaderText(int resId) {
|
||||
setHeaderText(resId, false /* force */);
|
||||
getLayout().getHeaderTextView().setContentDescription(getText(resId));
|
||||
}
|
||||
|
||||
protected void setHeaderText(CharSequence title) {
|
||||
getLayout().setHeaderText(title);
|
||||
getLayout().getHeaderTextView().setContentDescription(title);
|
||||
}
|
||||
|
||||
protected void setDescriptionText(int resId) {
|
||||
getLayout().setDescriptionText(resId);
|
||||
CharSequence previousDescription = getLayout().getDescriptionText();
|
||||
CharSequence description = getString(resId);
|
||||
// Prevent a11y for re-reading the same string
|
||||
if (!TextUtils.equals(previousDescription, description)) {
|
||||
getLayout().setDescriptionText(resId);
|
||||
}
|
||||
}
|
||||
|
||||
protected void setDescriptionText(CharSequence descriptionText) {
|
||||
|
Reference in New Issue
Block a user