Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2fc86ae4 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Fix potential leakage of InputWindowHandle from display removal

In general, input info is updated asynchronously by setInputWindowInfo.
So there may be a timing:
(1) Send a input info transaction.
(2) Clear input info for display removal.
(3) The transaction of (1) arrived.
This change ensures that (2) will be called after (3).

Bug: 126141550
Test: Run "atest WindowFocusTests" many times.
      Check "adb shell dumpsys input | grep Display:"
      It should only print "Display: 0".

Change-Id: Iffc867e1630f8b0715faef346c2ecb9210312d9f
parent a2fc38e4
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