Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fa251ea authored by Kevin Chyn's avatar Kevin Chyn
Browse files

BiometricDialogView should update text when locale changes

Fixes: 118104917

Test: Change locale, run BiometricPromptDemo; string is translated
Change-Id: I86d6643f5a2ed363aab0a60ae2387de538d40f69
parent da3b55a1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -167,7 +167,6 @@ public abstract class BiometricDialogView extends LinearLayout {
        final ImageView icon = mLayout.findViewById(R.id.biometric_icon);

        icon.setContentDescription(getResources().getString(getIconDescriptionResourceId()));
        mErrorText.setText(getResources().getString(getHintStringResourceId()));

        setDismissesDialog(space);
        setDismissesDialog(leftSpace);
@@ -189,6 +188,8 @@ public abstract class BiometricDialogView extends LinearLayout {
    public void onAttachedToWindow() {
        super.onAttachedToWindow();

        mErrorText.setText(getHintStringResourceId());

        final TextView title = mLayout.findViewById(R.id.title);
        final TextView subtitle = mLayout.findViewById(R.id.subtitle);
        final TextView description = mLayout.findViewById(R.id.description);