Commit 45e0703
committed
Improve keyboard height adjustment trigger mechanism
Previous approach was hideSoftInputFromWindow + showSoftInput.
This approach was bad because:
1. It caused a flash due to the keyboard being hidden then reshown.
2. It failed to actually redraw at the new size in Android 16 (API 36),
presumably due to changes in the heuristics used to determine whether
a redraw is actually required.
---
New approach is restartInput + showSoftInput.
This seems to fix both problems:
1. The flash no longer occurs.
2. The keyboard is properly redrawn at the new size in Android 16 (API 36).
---
Fixes <#21>.1 parent 06c5a92 commit 45e0703
File tree
2 files changed
+4
-2
lines changed- app/src/main/java/io/github/yawnoc/strokeinput
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments