aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethodcommon/InputMethodSettingsActivity.java
diff options
context:
space:
mode:
authorlumark <lumark@google.com>2019-05-31 17:13:13 +0800
committerlumark <lumark@google.com>2019-07-09 21:08:19 +0800
commit4d464ec07d9d37d357697f3d0b443bd0e0d830da (patch)
tree31c29b960a2ee2760b16f11faf0700f4e4f2b5c3 /java/src/com/android/inputmethodcommon/InputMethodSettingsActivity.java
parentbd7fbb4ccbeb532155ae559c9fca16b203a025d6 (diff)
downloadlatinime-4d464ec07d9d37d357697f3d0b443bd0e0d830da.tar.gz
latinime-4d464ec07d9d37d357697f3d0b443bd0e0d830da.tar.xz
latinime-4d464ec07d9d37d357697f3d0b443bd0e0d830da.zip
Create display context when switching IME to new display for AOSP IME
To address IME service context's Resources / DisplayMetrics update when switching IME window to another display after onConfigurationChange. We use Context#createDisplayContext to create display specific context when display changed, to ensure soft keyboard can re-layout with correct resources. Bug: 126930163 Test: manual with AOSP IME as below steps: 1) Settings > Developer options > enable "Simulated Display" & "Force desktop mode". 2) Reboot device 3) Launch app (i.e. Contacts) with bluetooth or usb mouse in Simulated display. 4) Tap EditText on app to see see if IME window layout correctly on simulated display. 5) Launch app (i.e Files) on primary display. 6) Tap EditText on app to see if IME window layout correctly on primary display. Change-Id: I0ed6a079af1ed90c75fee1d36d5ce3ef3c41f8ed
Diffstat (limited to 'java/src/com/android/inputmethodcommon/InputMethodSettingsActivity.java')
0 files changed, 0 insertions, 0 deletions