Fix an a11y issue that the the QAW activity announces "System UI"

instead of "Wallet" in talkback.

Root cause is that we set an empty title in WalletActivity, then the
application label wasn't override even if we set the activity label in
the AndroidManifest.

Test: manual
Bug: 198198195
Change-Id: I14f36f8e37664493b930dea18cfa0f6fc6021933
This commit is contained in:
Silin Huang
2021-09-14 17:03:01 -07:00
parent ad28fe0efb
commit 1721659e6f

View File

@@ -116,7 +116,7 @@ public class WalletActivity extends LifecycleActivity implements
if (toolbar != null) {
setActionBar(toolbar);
}
setTitle("");
getActionBar().setDisplayShowTitleEnabled(false);
getActionBar().setDisplayHomeAsUpEnabled(true);
getActionBar().setHomeAsUpIndicator(getHomeIndicatorDrawable());
getActionBar().setHomeActionContentDescription(R.string.accessibility_desc_close);