diff options
author | Wilson Wu <wilsonwu@google.com> | 2020-07-17 23:50:45 +0800 |
---|---|---|
committer | Wilson Wu <wilsonwu@google.com> | 2020-07-18 00:51:47 +0800 |
commit | 0ebe70cb0fa685693d7834b4b4ee94515149c8fb (patch) | |
tree | fa911bf683f840924be5aac51342d44f951eb358 /tools/aapt2/java/AnnotationProcessor_test.cpp | |
parent | 76cfda57e541cae6ca2e433c7d40990683d7c08f (diff) |
Prevent exception when surrounding text retrieval
We use same reference from TextView to set the initial
surrounding text. The actual surrounding text may be
modified before retrieval since the mSurroundingText
is mutable. Use a copy of subText should avoid this
concurrent issue.
Bug: 160390184
Test: atest FrameworksCoreTests:EditorInfoTest
Change-Id: I6082a4cae2fcdc4c529dc14e2e5e7a45ab1aae4d
Diffstat (limited to 'tools/aapt2/java/AnnotationProcessor_test.cpp')
0 files changed, 0 insertions, 0 deletions