summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2022-01-13 20:36:44 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-01-13 20:36:44 +0000
commitc0a6d3fc8f3500eab7b3124a5df5a5f0ea0de97d (patch)
tree5c44b5e900eba43cce0352f9b3394ba2c2f8b9b0
parentb92c4e231925819d66e7bd21c9cf48cc068bf9ea (diff)
parent411b71bf09cfa1d1b3d36fc0f744221c62d6573b (diff)
downloadLauncher3-c0a6d3fc8f3500eab7b3124a5df5a5f0ea0de97d.tar.gz
Merge "TalkBack doesn't announce when a task has being closed." into sc-v2-dev
-rw-r--r--quickstep/res/values/strings.xml3
-rw-r--r--quickstep/src/com/android/quickstep/views/RecentsView.java2
2 files changed, 5 insertions, 0 deletions
diff --git a/quickstep/res/values/strings.xml b/quickstep/res/values/strings.xml
index a4bbae02ac..6caed1cf7d 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 e863a89b10..02261af499 100644
--- a/quickstep/src/com/android/quickstep/views/RecentsView.java
+++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -2783,6 +2783,8 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
}
}
+ announceForAccessibility(getResources().getString(R.string.task_view_closed));
+
float dismissTranslationInterpolationEnd = 1;
boolean closeGapBetweenClearAll = false;
boolean isClearAllHidden = isClearAllHidden();