From 1721659e6fd59209378a01e96a90b97b8a31bbd3 Mon Sep 17 00:00:00 2001 From: Silin Huang Date: Tue, 14 Sep 2021 17:03:01 -0700 Subject: [PATCH] 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 --- .../src/com/android/systemui/wallet/ui/WalletActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/wallet/ui/WalletActivity.java b/packages/SystemUI/src/com/android/systemui/wallet/ui/WalletActivity.java index 2b4b49b82df16..f39a3153c12a9 100644 --- a/packages/SystemUI/src/com/android/systemui/wallet/ui/WalletActivity.java +++ b/packages/SystemUI/src/com/android/systemui/wallet/ui/WalletActivity.java @@ -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);