summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorlumark <lumark@google.com>2019-11-10 15:58:23 +0800
committerlumark <lumark@google.com>2019-11-15 11:59:15 +0800
commitbf3ce30a69ba94b05cb2ad3ba41330276ed6f86e (patch)
tree62a9262a24e81ac8686b444714757525d66819f6 /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta96a64faaae8073e6d27d7b041109d556ba50b5a (diff)
Skip deleteSurroundingText when there is an invalid selection
Since InputConnection#deleteSurroundingText the design is to delete the text before the selection start and after the selection end range, it would be possible that the exception may happened when the obsolete selection range which is not aligned with the current text content. Add a check to make sure the text will be deleted when the number of text before / selection the selection is > 0. Also, skip the delection when the selection is not yet attached Bug: 130979263 Test: atest BaseInputConnectionTest Change-Id: I93b69b71531bcab4ae204c1c1287b8fbe0224ea8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions