summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2022-05-03 11:37:25 -0500
committer chaviw <chaviw@google.com> 2022-05-04 16:28:12 -0500
commit03df85e0593e6ac17f802b29a9045a4628019441 (patch)
tree18621d8d1d29dec12014a37df7ad3712386914df /libs/androidfw/StringPool.cpp
parente69a969fd669cd060bf0f2d8b4cb2ce0d04d050c (diff)
Set focus to WMS computed focus when embedded window drops focus
If an internal system window wants to drop focus from an embedded window, requestFocusTransfer doesn't need to be called and instead we can directly call setFocusedWindow. This fixes the case where transfer focus fails if the old focused window loses visibility by the time the transfer request arrives. The transfer won't be allowed because the old window isn't focused anymore so we can't honor the transfer request. This fix is fine for internal system windows because there's no security issue with transferring focus from embedded to something WMS computes. However, there's still a race condition for cases where apps want to transfer focus from embedded back to host when they are setting visibility on the embedded window since the embedded window can become invisible before the transfer goes through. Test: Pip Menu focus lost Fixes: 230851770 Change-Id: I09db0bbdf4db6eeaffa30275233811b13ea31132
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions