commit | 47b9cb8436e3c792e3c610ea527063341bbcadbe | [log] [tgz] |
---|---|---|
author | Holly Sun <jiuyu@google.com> | Thu Apr 25 10:31:37 2024 -0700 |
committer | Holly Sun <jiuyu@google.com> | Thu Apr 25 15:13:41 2024 -0700 |
tree | a72f351fb028fe7fc17dba8308326bab5b880899 | |
parent | f3296f800d3515ba6def23877e3df29cf9e7308e [diff] |
[a11y] Change all apps screen name to All Apps instead of reusing Home. Now even when we enter the All Apps page, talkback still reads the page name as Home (https://source.corp.google.com/h/googleplex-android/platform/superproject/main/+/main:packages/apps/Launcher3/src/com/android/launcher3/Launcher.java;l=586;drc=120838b04dcaf072704c6fb382ea9115672cfcaa). Bug: 330470894 Bug: 333833220 Test: manual Flag: NA Change-Id: I32a1ce8844cd111c7d1c492ee0a39fec47858a47
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index dc7c349..4fe7234 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java
@@ -1261,6 +1261,13 @@ getAllAppsExitEvent().ifPresent(getStatsLogManager().logger()::log); mAllAppsSessionLogId = null; } + + // Set screen title for Talkback + if (state == ALL_APPS) { + setTitle(R.string.all_apps_label); + } else { + setTitle(R.string.home_screen); + } } /**