commit | 51cdf403eb01e83ff52651a6acd44500a03676b1 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Thu Dec 05 10:35:52 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Dec 05 10:35:52 2024 +0000 |
tree | 87aa2622bebe3345c712dbb45b2aaeb758ab8088 | |
parent | e573c07aea8ad69bb1c656d3b07b251274824b7e [diff] | |
parent | 1d0de40dd72aed62cd8c7cfd061b97611af4ebf4 [diff] |
Merge "Announce action hint when focused on cursor" into main am: 1d0de40dd7 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Virtualization/+/3391886 Change-Id: I6ff6d7c0e11368ccc56c719770b8f6b98efd9376 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/android/TerminalApp/java/com/android/virtualization/terminal/TerminalView.java b/android/TerminalApp/java/com/android/virtualization/terminal/TerminalView.java index c57c4c0..0ffc093 100644 --- a/android/TerminalApp/java/com/android/virtualization/terminal/TerminalView.java +++ b/android/TerminalApp/java/com/android/virtualization/terminal/TerminalView.java
@@ -256,7 +256,7 @@ // ttyd name it as "Terminal input" but it's not i18n'ed. Override it // here for better i18n. info.setText(null); - info.setHintText(null); + info.setHintText(getString(R.string.double_tap_to_edit_text)); info.setContentDescription(getString(R.string.terminal_input)); info.setScreenReaderFocusable(true); info.addAction(AccessibilityAction.ACTION_FOCUS);
diff --git a/android/TerminalApp/res/values/strings.xml b/android/TerminalApp/res/values/strings.xml index 884e5f0..20fd95d 100644 --- a/android/TerminalApp/res/values/strings.xml +++ b/android/TerminalApp/res/values/strings.xml
@@ -27,7 +27,7 @@ <!-- Description of an empty line in the terminal. This is read by talkback. [CHAR LIMIT=none] --> <string name="empty_line">Empty line</string> <!-- Description of the hint supported by the terminal UI elements. This is read by talkback. [CHAR LIMIT=none] --> - <string name="double_tap_to_edit_text">Double-tap to go to cursor</string> + <string name="double_tap_to_edit_text">Double-tap to type input</string> <!-- Installer activity title [CHAR LIMIT=none] --> <string name="installer_title_text">Install Linux terminal</string>