Refactor FingerprintEnrollEnrolling to fragment
Bug: b/260957933 Test: NA Change-Id: I8f704297a2a53ddf39734e0fefe258a123255341
This commit is contained in:
@@ -67,4 +67,16 @@ public class GlifLayoutHelper {
|
||||
mGlifLayout.setDescriptionText(description);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets description resId to GlifLayout
|
||||
*/
|
||||
public void setDescriptionText(int resId) {
|
||||
CharSequence previousDescription = mGlifLayout.getDescriptionText();
|
||||
CharSequence description = mActivity.getString(resId);
|
||||
// Prevent a11y for re-reading the same string
|
||||
if (!TextUtils.equals(previousDescription, description)) {
|
||||
mGlifLayout.setDescriptionText(resId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user