Skip to content

Commit 2352fa1

Browse files
committed
Improve needed in API level 35+ comment wording
1 parent c7342bd commit 2352fa1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
- Upgraded Android SDK to Level 35
77
- Implemented keyboard edge-to-edge padding (bottom spacer)
8-
- Opted out of Main Activity edge-to-edge
8+
- Opted out of Main Activity edge-to-edge (screw you Google)
99
- Fixed buggy key preview initialisation in landscape mode
1010
- Changed Help/About link colour to blue
1111

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
- Candidates view
3232
- Keyboard view
3333
(b) Key preview plane (overlaid)
34-
2. Bottom spacer (needed in API level 35+ due to edge-to-edge)
34+
2. Bottom spacer (needed in API level 35+ for edge-to-edge bottom padding)
3535
*/
3636
public class InputContainer
3737
extends LinearLayout
@@ -49,7 +49,7 @@ public WindowInsets onApplyWindowInsets(WindowInsets insets)
4949
{
5050
super.onApplyWindowInsets(insets);
5151

52-
if (Build.VERSION.SDK_INT >= 35) // bottom spacing for edge-to-edge
52+
if (Build.VERSION.SDK_INT >= 35) // needed in API level 35+ for edge-to-edge bottom padding
5353
{
5454
final Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
5555
ViewGroup.LayoutParams layoutParameters = bottomSpacer.getLayoutParams();

0 commit comments

Comments
 (0)