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

Commit 05486d8a authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Ensure "add a number" gets read appropriately.

The button style uses upper-case text to label the button.  This means
"add a number" is read as "A - D - D a number".
Setting the content description solves this (since the original string
is not all upper-cased).

Test: Manual with screen reader
Bug: 73557137
Change-Id: I630f9f328ba35c6b065c4dec27e8c6eff58e218b
parent 8c21679b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -121,6 +121,7 @@ public class BlockedNumbersActivity extends ListActivity

        mAddButton = (TextView) findViewById(R.id.add_blocked);
        mAddButton.setOnClickListener(this);
        mAddButton.setContentDescription(getText(R.string.block_number));

        mProgressBar = (ProgressBar) findViewById(R.id.progress_bar);
        String[] fromColumns = {BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER};