Skip to content
Commit 9629242d authored by Tiger Huang's avatar Tiger Huang
Browse files

Copy leashes about to return to prevent others release them

When a thread is excuting addWindow or relayoutWindow, there might be
another thread attempting to call updateInputMethodTargetWindow but
waiting for the lock. When the lock is released by addwindow or
relayoutWindow, the logic inside updateInputMethodTargetWindow might
release the leash that addWindow or relayoutWindow is about to return.

This CL return the copied leashes, so that other thread won't release
the leash which is about to return.

Fix: 154175855
Test: atest CtsWidgetTestCases
Change-Id: I48a7dbf1576e07302c66955e2d3c86037e987617
parent 896cdcca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment