mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Fix Keyboard Theme update when device orientation changed"
This commit is contained in:
commit
7ae00baa87
@ -803,7 +803,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||
// create new display context and re-init keyboard layout with this context.
|
||||
final WindowManager wm = getSystemService(WindowManager.class);
|
||||
final int newDisplayId = wm.getDefaultDisplay().getDisplayId();
|
||||
if (mCurDisplayId != newDisplayId) {
|
||||
if (mCurDisplayId != newDisplayId || !mDisplayContext.getResources().getConfiguration()
|
||||
.equals(getResources().getConfiguration())) {
|
||||
mCurDisplayId = newDisplayId;
|
||||
mDisplayContext = createDisplayContext(wm.getDefaultDisplay());
|
||||
mKeyboardSwitcher.updateKeyboardTheme(mDisplayContext);
|
||||
|
Loading…
Reference in New Issue
Block a user