Skip to content

Commit 56f1e21

Browse files
committed
fix: flush layout with switching keyboard
1 parent a3e27a5 commit 56f1e21

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/src/main/java/com/osfans/trime/ime/keyboard/KeyboardView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ public void setKeyboard(Keyboard keyboard) {
621621
List<Key> keys = mKeyboard.getKeys();
622622
mKeys = keys.toArray(new Key[keys.size()]);
623623
setKeyboardBackground();
624+
requestLayout();
624625
// Hint to reallocate the buffer if the size changed
625626
mKeyboardChanged = true;
626627
invalidateAllKeys();

0 commit comments

Comments
 (0)