summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorWilson Wu <wilsonwu@google.com>2020-07-17 23:50:45 +0800
committerWilson Wu <wilsonwu@google.com>2020-07-18 00:51:47 +0800
commit0ebe70cb0fa685693d7834b4b4ee94515149c8fb (patch)
treefa911bf683f840924be5aac51342d44f951eb358 /tools/aapt2/java/JavaClassGenerator.cpp
parent76cfda57e541cae6ca2e433c7d40990683d7c08f (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/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions