Skip to content

Nav bar overlaps footer on Home & Insights (Android 15+ edge-to-edge) #102

Description

@almothafar

Problem

On a newer Android device the system navigation bar overlaps the footer (developer signature / insights content) on the Home and Battery Insights screens. On older devices (e.g. Mate 10 Pro) everything looked fine.

Root cause

Android 15+ (targetSdk 35+) enforces edge-to-edge, so the system no longer insets app content above the navigation bar — the app must do it. SettingsActivity already handles this via applyBottomSystemBarInset(...), but:

  • activity_main.xml bottom section and activity_battery_insights.xml scroll content only use a fixed @dimen/content_navigation_bar_padding (16dp) and never apply the real nav-bar inset.
  • On older Android (Mate 10 Pro) the system auto-insets content, so the fixed 16dp was enough — hence it looked correct there.

Fix

Apply BaseActivity.applyBottomSystemBarInset(...) to the bottom containers on both screens (Home: the bottom 'Battery Health Section' LinearLayout; Insights: the ScrollView's content LinearLayout), keeping the 16dp as content breathing room with the real nav-bar inset added on top.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions