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

Unverified Commit 3b906590 authored by Tommy Webb's avatar Tommy Webb Committed by Michael Bestas
Browse files

fixup! Keyguard: Add option to scramble pin layout when unlocking (2/2).

Set the content description whenever the digit is updated, not just
once when the key is created.

Test: Manual: Review output created by `adb shell uiautomator dump`
      to ensure text of inner node matches content description of
      outer node for keys, and/or verify when navigating between
      keys with TalkBack.
Issue: calyxos#3279
Change-Id: I4be8ad9777f17e9b7f98352e4961a0038eb4fb5b
parent 1efc69ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,6 @@ public class NumPadKey extends ViewGroup implements NumPadAnimationListener {
        mKlondikeText = (TextView) findViewById(R.id.klondike_text);

        updateText();
        setContentDescription(mDigitText.getText().toString());

        Drawable background = getBackground();
        if (background instanceof GradientDrawable) {
@@ -140,6 +139,7 @@ public class NumPadKey extends ViewGroup implements NumPadAnimationListener {
    private void updateText() {
        if (mDigit >= 0) {
            mDigitText.setText(Integer.toString(mDigit));
            setContentDescription(mDigitText.getText().toString());
            if (sKlondike == null) {
                sKlondike = getResources().getStringArray(R.array.lockscreen_num_pad_klondike);
            }