maiacore android keyboard app or something
Find a file
Ming-Shin Lu 6ae09365a5 Fix Keyboard Theme update when device orientation changed
As CL[1] introduces diplayContext to address
IME service context's Resources / DisplayMetrics update when
switching IME window to another display after onConfigurationChange.

In LatinIME#onInitializeInterface, we only update keyboard theme context
and displayContent when the displayId is changed, but overlooked even
the displayId is the same, the display context's resource configuration
might changed like the device orientation changd.

It leads getDefaultKeyboardHeight will get wrong config_max_keyboard_height
fraction value when rotating to landcape because the context resources
didn't get updated.

Add a check to update keyboard theme context when the current display
configuation is changed accordingly.

[1]: I0ed6a079af1ed90c75fee1d36d5ce3ef3c41f8ed

Fix: 186507147
Test: manual as issue steps
    1) Turn on auto-rotate
    2) Open Settings
    3) Rotating the device to landscape mode
    4) Tap “Search settings", verify if the soft-keyboard shown and the
       size is expected.
Change-Id: I288a31baf04fa2e63d6b4a14ad81b401cb36ece5
Merged-In: I288a31baf04fa2e63d6b4a14ad81b401cb36ece5
2021-06-18 02:16:19 +00:00
common [LSC] Add LOCAL_LICENSE_KINDS to packages/inputmethods/LatinIME 2021-02-17 09:46:27 -08:00
dictionaries Update LatinIME to comply with Android's inclusive language guidance 2020-08-12 13:07:02 +02:00
gradle/wrapper Experimentally Support Android Studio to build LatinIME 2018-07-25 18:08:28 -07:00
java Fix Keyboard Theme update when device orientation changed 2021-06-18 02:16:19 +00:00
native [LSC] Add LOCAL_LICENSE_KINDS to packages/inputmethods/LatinIME 2021-02-17 09:46:27 -08:00
tests Bump targetSdkVersion to "30" 2021-06-15 11:13:09 -07:00
tools [LSC] Add LOCAL_LICENSE_KINDS to packages/inputmethods/LatinIME 2021-02-17 09:46:27 -08:00
.gitignore Experimentally Support Android Studio to build LatinIME 2018-07-25 18:08:28 -07:00
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to packages/inputmethods/LatinIME 2021-02-17 09:46:27 -08:00
build.gradle Migrate packages/inputmethods/LatinIME to androidx.test 2018-12-13 19:06:42 -08:00
CleanSpec.mk Move LatinIME and its lib to /product 2019-01-11 15:20:31 +00:00
gradlew Experimentally Support Android Studio to build LatinIME 2018-07-25 18:08:28 -07:00
gradlew.bat Experimentally Support Android Studio to build LatinIME 2018-07-25 18:08:28 -07:00
NOTICE Move MODULE_LICENSE_APACHE2 to the project top dir 2018-11-19 12:11:31 -08:00
OWNERS Remove paulduffin@ from OWNERS 2018-10-10 16:15:41 +01:00