Skip to content

Conversation

@triniwiz
Copy link
Member

@triniwiz triniwiz commented Jan 29, 2026

Improvements to Android edge-to-edge support and overflow handling.

  • Refactored the enableEdgeToEdge API in native-helper-for-android.ts to accept either a Window or options object, and added new utility functions getIgnoreEdgeToEdgeOnOlderDevices and setIgnoreEdgeToEdgeOnOlderDevices for more granular control. [1] [2] [3] [4]
  • Updated Android dialog initialization to enable edge-to-edge mode for dialog windows, ensuring consistent UI appearance. [1] [2]

Overflow Handling Improvements:

  • Expanded the AndroidOverflow type to support AndroidOverflowMultiple in addition to existing options, allowing for more flexible overflow edge configurations.
  • Refactored overflow edge handling in LayoutBase.java to improve inset management and listener setup, including new buffer management methods and more robust handling of ignored edges. [1] [2]

Android SDK and Dependency Updates:

  • Updated Android SDK versions to 36 and bumped dependencies for androidx.fragment, androidx.activity, and added androidx.core for improved compatibility and access to new features. [1] [2] [3] [4] [5]

@nx-cloud
Copy link

nx-cloud bot commented Jan 29, 2026

View your CI Pipeline Execution ↗ for commit 3d2cca1

Command Status Duration Result
nx test apps-automated -c=ios ✅ Succeeded 2m 31s View ↗
nx run-many --target=test --configuration=ci --... ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-01-31 22:32:47 UTC

@triniwiz triniwiz marked this pull request as ready for review January 29, 2026 22:53
@NathanWalker NathanWalker requested a review from Copilot January 30, 2026 00:59
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves edge-to-edge window handling on Android by refactoring the insets management logic and adding support for enabling edge-to-edge for dialog windows. It also updates the Android SDK from API 35 to API 36 and updates several AndroidX dependencies.

Changes:

  • Added new enableEdgeToEdge overloads that accept a Window parameter for enabling edge-to-edge on dialogs
  • Refactored window insets handling in LayoutBase to simplify overflow edge logic
  • Added ignoreEdgeToEdgeOnOlderDevices flag to optionally disable edge-to-edge on older Android versions
  • Updated Android SDK to API 36 and AndroidX dependencies to latest versions

Reviewed changes

Copilot reviewed 9 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/Utils.java Added Window-based edge-to-edge overloads and version check flag
packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/LayoutBase.java Refactored window insets handling logic for cleaner overflow edge management
packages/ui-mobile-base/android/widgets/build.gradle Updated SDK to API 36 and AndroidX dependencies to latest versions
packages/ui-mobile-base/android/widgetdemo/src/main/java/org/nativescript/widgetsdemo/MainActivity.kt Added dialog fragment test case demonstrating Window-based edge-to-edge
packages/ui-mobile-base/android/widgetdemo/build.gradle.kts Updated SDK targets to API 36
packages/types-android/src/lib/android/org.nativescript.widgets.d.ts Added type declarations for new Java methods
packages/core/utils/native-helper.d.ts Added TypeScript signatures for new edge-to-edge Window overload
packages/core/utils/native-helper.android.ts Exported new getter/setter for ignoreEdgeToEdgeOnOlderDevices flag
packages/core/utils/native-helper-for-android.ts Implemented Window overload support for enableEdgeToEdge
packages/core/ui/core/view/index.android.ts Removed debug console.log and added edge-to-edge support for dialog windows
packages/core/core-types/index.ts Updated AndroidOverflow type to include AndroidOverflowMultiple as standalone option

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@NathanWalker NathanWalker merged commit f2ebd21 into main Jan 31, 2026
7 checks passed
@NathanWalker NathanWalker deleted the feat/ete branch January 31, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants