Skip to content

Commit fbd9099

Browse files
committed
Fix buggy landscape key preview initialisation
1 parent b410d7c commit fbd9099

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
## [Unreleased]
55

66
- Upgraded Android SDK to Level 35
7+
- Fixed buggy key preview initialisation in landscape mode
78

89

910
## [v1.2.10] (63) Cursed be BroadcastReceiver (2024-05-17)

app/src/main/java/io/github/yawnoc/strokeinput/InputContainer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public void setKeyRepeatIntervalMilliseconds(final int milliseconds)
141141

142142
public void redrawKeyboard()
143143
{
144+
keyboardView.requestLayout();
144145
keyboardView.invalidate();
145146
}
146147
}

app/src/main/java/io/github/yawnoc/strokeinput/StrokeInputService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ public void onStartInputView(final EditorInfo editorInfo, final boolean isRestar
412412
{
413413
keyboard.correctKeyboardWidth(inputContainerWidth); // needed in API level 35+ due to edge-to-edge breakage
414414
}
415+
inputContainer.redrawKeyboard(); // key preview plane initialisation is buggy in landscape mode
415416
}
416417
);
417418

0 commit comments

Comments
 (0)