summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ats Jenk <atsjenk@google.com> 2024-07-23 12:08:30 -0700
committer Ats Jenk <atsjenk@google.com> 2024-07-23 12:08:30 -0700
commit9274cb20fce318b8b33540791075d4476b18e80a (patch)
tree477331e6e4c0a89b706b27b0363c6afdebb12869
parent6a3e6b1ae2bbf2eab928c03f46b05224b3d127dd (diff)
Add content description to handle in bubble
When a bubble is expanded from bubble bar, it will have the app handle. Add content description to the handle so users using talkback know what it is. Update content description of the handle from "handle" to "app handle" based on UX feedback. Bug: 344671270 Flag: com.android.wm.shell.enable_bubble_bar Test: enable talkback and focus on bubble handle Change-Id: I22d15b4fcdea4549e9a8b1589ad0d584d4e23af1
-rw-r--r--libs/WindowManager/Shell/res/values/strings.xml2
-rw-r--r--libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarHandleView.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/libs/WindowManager/Shell/res/values/strings.xml b/libs/WindowManager/Shell/res/values/strings.xml
index 4e7cfb638a12..8669af39747d 100644
--- a/libs/WindowManager/Shell/res/values/strings.xml
+++ b/libs/WindowManager/Shell/res/values/strings.xml
@@ -263,7 +263,7 @@
<!-- Accessibility text for the caption back button [CHAR LIMIT=NONE] -->
<string name="back_button_text">Back</string>
<!-- Accessibility text for the caption handle [CHAR LIMIT=NONE] -->
- <string name="handle_text">Handle</string>
+ <string name="handle_text">App handle</string>
<!-- Accessibility text for the handle menu app icon [CHAR LIMIT=NONE] -->
<string name="app_icon_text">App Icon</string>
<!-- Accessibility text for the handle fullscreen button [CHAR LIMIT=NONE] -->
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarHandleView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarHandleView.java
index d54a6b002e43..c91567d7d8be 100644
--- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarHandleView.java
+++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarHandleView.java
@@ -80,6 +80,7 @@ public class BubbleBarHandleView extends View {
outline.setPath(mPath);
}
});
+ setContentDescription(getResources().getString(R.string.handle_text));
}
/**