Skip to content

feat(ui): implement proper edge-to-edge support for Android 15 (targetSdk 35)#361

Open
MohamedMBG wants to merge 7 commits intoGrakovNe:mainfrom
MohamedMBG:main
Open

feat(ui): implement proper edge-to-edge support for Android 15 (targetSdk 35)#361
MohamedMBG wants to merge 7 commits intoGrakovNe:mainfrom
MohamedMBG:main

Conversation

@MohamedMBG
Copy link
Copy Markdown
Contributor

This PR fully enables proper edge-to-edge rendering across the app in compliance with Android 15 (API 35).

Previously, several screens were constrained by hardcoded systemBarsPadding() modifiers, which prevented true immersive rendering. These constraints have now been removed, allowing content to draw behind system bars while still correctly respecting safe areas through proper inset handling.

The result is a more modern, immersive UI that behaves correctly across light/dark themes and gesture navigation.

Changes Made

  1. System Bar Appearance

Updated LissenTheme to correctly configure:

isAppearanceLightNavigationBars

isAppearanceLightStatusBars

Ensures system bars dynamically match the active light/dark theme.

  1. Scaffold Adjustments

Removed hardcoded Modifier.systemBarsPadding() across:

LibraryScreen

PlayerScreen

LoginScreen

SettingsScreen and its derivatives

This allows backgrounds to render edge-to-edge as intended.

  1. Proper Inset Handling

LibraryScreen

Restored correct padding using innerPadding from Scaffold

Ensures LazyColumn content remains readable and does not overlap status/navigation bars

PullRefreshIndicator

Adjusted alignment to prevent overlap with translucent TopAppBar

  1. Bottom Navigation Improvements

NavigationBarComposable & NavigationBarPlaceholderComposable

Removed fixed 64.dp height constraint

Now dynamically adapts using navigationBarsPadding()

MiniPlayerComposable

Added explicit navigationBarsPadding() to ensure correct floating behavior above system gesture areas

  1. Preview Support

Added AppPreview.kt

Enables isolated layout validation

Improves edge-to-edge testing inside @Preview blocks

@GrakovNe
Copy link
Copy Markdown
Owner

GrakovNe commented Mar 2, 2026

Sorry, but I still can see the same issue with the scroll bar: https://youtube.com/shorts/u4Ozzcdn2-U

@MohamedMBG
Copy link
Copy Markdown
Contributor Author

I have made some modifications you can check now @GrakovNe

@GrakovNe
Copy link
Copy Markdown
Owner

GrakovNe commented Mar 3, 2026

Sorry to say it, but nothing has been changed

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.

2 participants