Merge changes I5989a67e,I30a77bd6 into sc-dev
* changes: Announce UDPFS enrollment percentage Update UDFPS fingerprint enrollment
This commit is contained in:
@@ -170,20 +170,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