summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorChang Li <licha@google.com>2020-11-17 22:40:41 +0000
committerChang Li <licha@google.com>2020-11-23 14:20:50 +0000
commit3895a035679c3144c13384ed1a704c147edb0f96 (patch)
tree306f9e25cf0d7f54682d8683309d7b1129db6979 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent4bc7c491a720bcdb4ce28ba9297385061bed0659 (diff)
Conditionally swallows Exceptions from TextClassificationAsyncTask.
After ag/12036126, the AsyncTask may throw RuntimeException if we destroy the TCSession before it is done. However, this kind of Exception should be swallowed silently because we do not need the result anymore. In b/172627102, the test fails because we perform a cut action to the text immediately after we trigger a selection. The cut action will destroy and TCSession and thus cause a session-already-destroyed Exception in the AsyncTask. With this, we will check whether the Text Classifier has already been destroyed and therefore can fix it. Bug: 172627102 Fix: 172627102 Test: atest AccessibilityTextTraversalTest.java Change-Id: Ia2ca04a06e97858cd897e5d35f707f5edeee56cf
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions