summaryrefslogtreecommitdiff
path: root/libs/input/KeyLayoutMap.cpp
diff options
context:
space:
mode:
author Bernardo Rufino <brufino@google.com> 2020-12-09 14:23:04 +0000
committer Bernardo Rufino <brufino@google.com> 2020-12-09 14:23:04 +0000
commit3bba7cb1f35b5ee3ba02bca7c743e29649505bd1 (patch)
tree2cb46bc14dd47ada26edbf8d483cf597ac16cc5b /libs/input/KeyLayoutMap.cpp
parent5f409a069065b89f64964b7e5a876d6a33ddf17f (diff)
Set ownerUid/ownerPid for layer with no input info
..instead of callingUid/callingPid. Using the caller instead of the owner is problematic because it can block touches when it shouldn't. The example we saw was twitter using an exit animation on their own app, the window had no input info but the touch was being blocked even thought it was twitter over twitter, this was because the uid being assigned was 1000 (the system) instead of twitter's UID. We have put an exemption for animations that takes into consideration the alpha, but this is orthogonal, twitter could have any other animation and should be allowed to let touches pass through to their own app if they wanted. Test: Verify windows in exit animations have UID correctly assigned, and verify touches are allowed when it's the same app below. Test: CTS coming Bug: 173317413 Change-Id: I03ac5dc590456c1b2941e5f351bc32890d1bbca3
Diffstat (limited to 'libs/input/KeyLayoutMap.cpp')
0 files changed, 0 insertions, 0 deletions