Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 30, 2025

App content was being cut off by system bars. Screens were not edge-to-edge compatible per Android insets guidelines.

Changes

  • MainActivity: Call enableEdgeToEdge() before setContent
  • BottomNavigationWrapper:
    • Set contentWindowInsets = WindowInsets(0, 0, 0, 0) on wrapper Scaffold to delegate inset handling to child screens
    • Set windowInsets = WindowInsets.navigationBars on NavigationBar
  • All screen Scaffolds: Add contentWindowInsets = WindowInsets.safeDrawing to:
    • MainLandingScreen
    • SettingsScreen
    • AppConfigScreen
    • AppActivityLogScreen
// MainActivity.kt
override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    enableEdgeToEdge()
    setContent { ... }
}

// Each screen's Scaffold
Scaffold(
    contentWindowInsets = WindowInsets.safeDrawing,
    // ...
) { innerPadding -> ... }
Original prompt

This section details on the original issue you should resolve

<issue_title>Android app is not edge to edge compatible</issue_title>
<issue_description>Some of the screens cut off content and screens are not edge to edge compatible. See https://developer.android.com/develop/ui/compose/system/insets

Applied proper safe insets and add support for edge to edge for all jetpack compose screens.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add edge to edge compatibility for Android app Add edge-to-edge support for all Jetpack Compose screens Nov 30, 2025
Copilot AI requested a review from hossain-khan November 30, 2025 21:44
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.

Android app is not edge to edge compatible

2 participants