summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/internal/ModifierKeyState.java
diff options
context:
space:
mode:
authorlumark <lumark@google.com>2019-05-31 17:13:13 +0800
committerMichael W <baddaemon87@gmail.com>2020-05-25 22:10:56 +0200
commit030d52f5d0d4694af1e773499722496cf0b0d141 (patch)
tree8a2a9d2834db5d8b1b3b8e05c5ea3bcaa420ccfa /java/src/com/android/inputmethod/keyboard/internal/ModifierKeyState.java
parent863298bb9adf7cf6758fc5992dcae9536fb311dd (diff)
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 Merged-In: I0ed6a079af1ed90c75fee1d36d5ce3ef3c41f8ed
Diffstat (limited to 'java/src/com/android/inputmethod/keyboard/internal/ModifierKeyState.java')
0 files changed, 0 insertions, 0 deletions