commit | bb2eb8cc3206a37d5d36e09aaec648675fe77249 | [log] [tgz] |
---|---|---|
author | Wilson Wu <wilsonwu@google.com> | Fri Jul 17 23:50:45 2020 +0800 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed Jul 22 00:21:56 2020 +0000 |
tree | bfe4653281cda714b7f5f9d9e3d1c158860a7c14 | |
parent | fa5cc51c8d27706c1bf025d01a9939acc632321f [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)