From 7264ba570411d6a9547b6377cd3eae7eb66778f9 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 94b3ac039..e3f62777f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,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 15ac253364f345ffbdbb63602ecf4b6f80fe7e79 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e3f62777f..44a6236ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,11 +8,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - We excluded react-native-vision-camera-barcode-scanner from iOS. The Barcode Scanner widget only uses it on Android; on iOS it uses Apple's built-in scanner from react-native-vision-camera. - This version of Native Template is required for the Barcode Scanner widget version 4.6.0 or above (Native Mobile Resources version 12.6.0 or above). +- 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