summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Ming-Shin Lu <lumark@google.com> 2022-02-10 00:40:34 +0800
committer Ming-Shin Lu <lumark@google.com> 2022-02-23 18:26:49 +0800
commitdf5fc6f727b698ca40f4aecad16a12513ecd12b6 (patch)
treefdcd58b6c370ebbfea8863f358292dbdc30faa95 /libs/androidfw/AttributeResolution.cpp
parenta97ad615016db2ee19b8918d8f37baf6a65a310a (diff)
Clear SHOW_FORCED flag when the app's targetSdk >= T
As the legacy flag SHOW_FORCED when calling showSoftInput keeps remaining soft-keyboard visible, even though switching focus to another application the situation still remains, unless someone calls hideSoftInputFromWindow explicitly. In case SHOW_FORCED flag affects the next client to keep IME visible and hard to handle for the app developer, we introduce a platform compatibility flag, when enabled, if the current client is leaving due to the next focused client, in IMMS side will clear mShowForced flag when the next client's targetSdkVersion is T or higher. Also, deprecated SHOW_FORCED flag with updating the reason in the documentation. Fix: 214016041 Test: atest KeyboardVisibilityControlTest#\ testShowSoftInputWithShowForcedFlagWhenAppIsLeaving Change-Id: I47efe5cb02ba69cbe018619e5bdc8f3995a55b4b
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions