commit | 0ebe70cb0fa685693d7834b4b4ee94515149c8fb | [log] [tgz] |
---|---|---|
author | Wilson Wu <wilsonwu@google.com> | Fri Jul 17 23:50:45 2020 +0800 |
committer | Wilson Wu <wilsonwu@google.com> | Sat Jul 18 00:51:47 2020 +0800 |
tree | fa911bf683f840924be5aac51342d44f951eb358 | |
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