commit | e81cab2fa4de94b58741c4ef0b3214993d3d1bd8 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Thu Jan 13 20:49:42 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jan 13 20:49:42 2022 +0000 |
tree | 15b1bce544afaab258e462e26777cdc78819aeee | |
parent | daaebc895949f9bd9300b29b1260db1b5a208041 [diff] | |
parent | c0a6d3fc8f3500eab7b3124a5df5a5f0ea0de97d [diff] |
Merge "TalkBack doesn't announce when a task has being closed." into sc-v2-dev am: c0a6d3fc8f Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16346766 Change-Id: I96ae73987e33c706f408d443559836a8d5024e37
diff --git a/quickstep/res/values/strings.xml b/quickstep/res/values/strings.xml index a4bbae0..6caed1c 100644 --- a/quickstep/res/values/strings.xml +++ b/quickstep/res/values/strings.xml
@@ -39,6 +39,9 @@ <!-- Accessibility title for the list of recent apps [CHAR_LIMIT=none] --> <string name="accessibility_recent_apps">Recent apps</string> + <!-- Accessibility confirmation for task closed --> + <string name="task_view_closed">Task Closed</string> + <!-- Accessibility title for an app card in Recents for apps that have time limit set [CHAR_LIMIT=none] --> <string name="task_contents_description_with_remaining_time"><xliff:g id="task_description" example="GMail">%1$s</xliff:g>, <xliff:g id="remaining_time" example="7 minutes left today">%2$s</xliff:g></string>
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index e863a89..02261af 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -2783,6 +2783,8 @@ } } + announceForAccessibility(getResources().getString(R.string.task_view_closed)); + float dismissTranslationInterpolationEnd = 1; boolean closeGapBetweenClearAll = false; boolean isClearAllHidden = isClearAllHidden();