summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorTony Huang <tonyychuang@google.com>2021-08-03 14:12:50 +0800
committerTony Huang <tonyychuang@google.com>2021-08-10 05:27:41 +0000
commitb29b6aac05a15d49f182f108981847f20c06ca12 (patch)
tree38a3580b8019d23703da695066e901428c7ce492 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentcc3b202fab42e86f1299b492334b58e35247152d (diff)
Fix split caused apps ANR
If mWindowDrawCountDown is set to non null when mReportNextDraw is false, it won't get cleared in performingDraw. If another draw occurs afterwards where mReportNextDraw is true, but requestDrawWindow doesn't get called, an ANR will occur. This is because performDraw will end up waiting forever since mWindowDrawCountDown was previously set to non null, but there will never be any calls reportDrawFinish to handle the countDown. We should only create latch and wait it when mReportNextDraw is true. Bug: 195262673 Test: Pass existing tests Test: Drag and drop split divider quickly Change-Id: I4ee81a41687c4f61a4828d4c61ba01abee795e89
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions