summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/DrawFrameTask.cpp
diff options
context:
space:
mode:
authorJoanne Chung <joannechung@google.com>2021-05-13 23:02:12 +0800
committerJoanne Chung <joannechung@google.com>2021-05-17 14:05:52 +0800
commit9753899a97020f3402b9f409f3d133690ace03c4 (patch)
tree4cf4acc7755364a3990bb6cc286fa02fd7a28f05 /libs/hwui/renderthread/DrawFrameTask.cpp
parent0a35d1d6b4e486c39f51c0ade132a48fecd210c7 (diff)
Translate TextView content description if exist
Screen reader(Talkback) will read content description first if the developers set. We only translate TextView text, this may cause the screen reader will not read the translated text if the developers set content description. To fix the issue, we also send the content description to translate. When the translated text is shown, we also set content description with translated content description and reset to original content description if show original text. Bug: 187134784 Test: atest CtsTranslationTestCases Change-Id: I6986384260627a0539780b7293d47666c442d852
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
0 files changed, 0 insertions, 0 deletions