summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Ming-Shin Lu <lumark@google.com> 2023-01-13 08:19:01 +0000
committer Ming-Shin Lu <lumark@google.com> 2023-01-18 17:56:47 +0000
commit45537b756720bd6248f281fa9cbf7187008e8ce8 (patch)
tree00fb5fd1f8081f2fca338c6f06453a5f494d6790 /libs/androidfw/ApkParsing.cpp
parent5975f9dc72297286acdfed3e65ca3ef34563901f (diff)
Fix IME being shifted when the app setRequestedOrientation
Fix an edge case happens on large-screen devices that DisplayContent#updateImeParent may not be called to update IME surface parent from the activity to the display area when the app actvitity is letterboxed by 1) activity handles configChange without being relaunched by window configuration change 2) calling setRequestedOrientation to fix orientation as portrait In this case, if the activity bounds size is not suitable to attach IME surface, we need to recompute the IME surface parent in WindowState#onConfigurationChanged to make IME surface can be placed on the display area to avoid IME position being shifted by letterboxed activity. Fix: 249081451 Test: atest FlickerTests:OpenImeWindowToFixedPortraitAppTest Change-Id: I7a66fd84e4094be249714c2597706ee25938adbe
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions