Skip to content

Commit acfea09

Browse files
authored
fix: ToastBar safearea overlap on android (#3953)
Fixes #3952
1 parent 6aa19eb commit acfea09

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed

.brokk/project.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#Brokk project configuration
2+
#Sun Oct 05 07:20:55 PDT 2025
3+
dataRetentionPolicy=MINIMAL
4+
issuesProviderJson={"type"\:"GITHUB","config"\:{"kind"\:"github","owner"\:"","repo"\:"","host"\:""}}

.brokk/review.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
When reviewing the pull request, please address the following points:
2+
- Explain your understanding of what this PR is intended to do.
3+
- Does it accomplish its goals in the simplest way possible?
4+
- Does it conform to the project coding standards?
5+
- What parts are the trickiest and how could they be simplified?
6+
- What additional tests, if any, would add the most value?
7+
8+
Conclude with a summary of:
9+
- Blockers (serious functional or design issues)
10+
- Additional areas for improvement, ordered by priority

.brokk/style.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Style Guide

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,13 @@ pom.xml.releaseBackup
7171
pom.xml.tag
7272
!maven/**/*.zip
7373
**/.flattened-pom.xml
74+
75+
### BROKK'S CONFIGURATION ###
76+
.brokk/**
77+
/.brokk/workspace.properties
78+
/.brokk/sessions/
79+
/.brokk/dependencies/
80+
/.brokk/history.zip
81+
!.brokk/style.md
82+
!.brokk/review.md
83+
!.brokk/project.properties

CodenameOne/src/com/codename1/components/ToastBar.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ public ToastBarComponent() {
713713
this.getAllStyles().setBgColor(0x0);
714714
this.getAllStyles().setBackgroundType(Style.BACKGROUND_NONE);
715715
this.getAllStyles().setBgTransparency(128);
716+
setSafeArea(true);
716717
setVisible(false);
717718
label = new TextArea();
718719
label.setUIID(defaultMessageUIID);
@@ -834,6 +835,9 @@ private ToastBarComponent getToastBarComponent(boolean create) {
834835
c.hidden = true;
835836
f.putClientProperty("ToastBarComponent", c);
836837
Container layered = getLayeredPane();
838+
// Mark the ToastBar overlay container as a safe area so it respects
839+
// device notches/system bars (e.g. Android navigation, iPhone notch).
840+
layered.setSafeArea(true);
837841
layered.setLayout(new BorderLayout());
838842
layered.addComponent(position==Component.TOP ? BorderLayout.NORTH : BorderLayout.SOUTH, c);
839843
updateStatus();

0 commit comments

Comments
 (0)