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
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-07-22 00:21:56 +0000
commitbb2eb8cc3206a37d5d36e09aaec648675fe77249 (patch)
treebfe4653281cda714b7f5f9d9e3d1c158860a7c14 /tools/aapt2/java/JavaClassGenerator.cpp
parentfa5cc51c8d27706c1bf025d01a9939acc632321f (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 (cherry picked from commit 0ebe70cb0fa685693d7834b4b4ee94515149c8fb)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions