-
Notifications
You must be signed in to change notification settings - Fork 1
Description
The library does not properly adhere to edge-to-edge display guidelines, causing layout issues on devices with both gesture navigation and traditional navigation buttons. Additionally, UI elements are being cut off due to Android 15’s new handling of system insets and cutouts.
Steps to Reproduce
Integrate the library into an Android project.
Set up the activity with WindowCompat.setDecorFitsSystemWindows(window, false).
Run the app on a device with Android 15 (or an emulator).
Observe that UI elements are either cut off or do not extend behind the system bars correctly.
Expected Behavior
The UI should extend to the edges of the screen, properly handling system bars.
The library should correctly apply WindowInsetsController or ViewCompat.setOnApplyWindowInsetsListener() to manage insets dynamically.
Navigation buttons (both gesture and 3-button mode) should not cause layout clipping.
Actual Behavior
UI elements are cut off or improperly positioned.
The issue occurs not just with gesture navigation but also with traditional navigation buttons.
On Android 15, cutout handling seems to be misaligned, leading to visual inconsistencies.
Environment
Library Version: 3.5.7
Android Version: 15
Device Model: Google Pixel 7
Theme: [Material3, AppCompat, etc.]
Possible Solution
Implement ViewCompat.setOnApplyWindowInsetsListener() for proper inset handling.
Ensure correct handling of WindowInsetsControllerCompat for Android 15 compatibility.
Consider using setOnApplyWindowInsetsListener to dynamically adjust padding/margins based on system bars.
Additional Context
This issue may be due to changes in how Android 15 handles system insets and cutouts, requiring proper edge-to-edge adjustments.