From c093c72f6366614dcc784fc0843d275c632580cb Mon Sep 17 00:00:00 2001 From: Srirang Kalantri Date: Thu, 22 Oct 2026 15:05:07 +0530 Subject: [PATCH 1/2] fix: edge to edge layout issue --- CHANGELOG.md | 1 + .../java/com/mendix/nativetemplate/MainActivity.java | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 703536b0d..80b3ccd52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [19.1.7] - 2026-09-23 - We removed some unused Android Permissions coming in from Manifest mergers. +- We fixed an issue on Android where the "Clear data" checkbox on the starting page of the Developer App was hidden behind the bottom navigation bar due to edge-to-edge. ## [19.1.6] - 2026-09-16 diff --git a/android/app/src/dev/java/com/mendix/nativetemplate/MainActivity.java b/android/app/src/dev/java/com/mendix/nativetemplate/MainActivity.java index b7158db47..5093654a8 100644 --- a/android/app/src/dev/java/com/mendix/nativetemplate/MainActivity.java +++ b/android/app/src/dev/java/com/mendix/nativetemplate/MainActivity.java @@ -20,7 +20,10 @@ import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; +import androidx.core.graphics.Insets; import androidx.core.util.Consumer; +import androidx.core.view.ViewCompat; +import androidx.core.view.WindowInsetsCompat; import com.google.zxing.Result; import com.mendix.mendixnative.activity.MendixReactActivity; @@ -57,6 +60,13 @@ public class MainActivity extends AppCompatActivity implements ZXingScannerView. protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main_dev); + // Edge-to-edge: keep the content clear of the system bars and display cutout + ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.root), (view, windowInsets) -> { + Insets bars = windowInsets.getInsets( + WindowInsetsCompat.Type.systemBars() | WindowInsetsCompat.Type.displayCutout()); + view.setPadding(bars.left, bars.top, bars.right, bars.bottom); + return WindowInsetsCompat.CONSUMED; + }); getWindow().getDecorView().setFilterTouchesWhenObscured(true); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { getWindow().setHideOverlayWindows(true); From cf0d1d0abf3b7ce850e758d64b59c88ef0047db1 Mon Sep 17 00:00:00 2001 From: Srirang Kalantri Date: Thu, 22 Oct 2026 15:08:04 +0530 Subject: [PATCH 2/2] chore: changelogs --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80b3ccd52..023bf03a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,10 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +- We fixed an issue on Android where the "Clear data" checkbox on the starting page of the Developer App was hidden behind the bottom navigation bar due to edge-to-edge. + ## [19.1.7] - 2026-09-23 - We removed some unused Android Permissions coming in from Manifest mergers. -- We fixed an issue on Android where the "Clear data" checkbox on the starting page of the Developer App was hidden behind the bottom navigation bar due to edge-to-edge. ## [19.1.6] - 2026-09-16