Skip to content

[NavigationRailView] Start insets only use the system bars instead of the system bar and display cutout insets #3990

Closed
@t895

Description

@t895

Description: The navigation rail applies start insets only based on the system bars. This results in the rail appearing behind display cutouts. This component used to change its start insets based on the system bars and the display cutout.

Expected behavior: Apply start insets based on the system bars and display cutout

Source code:

ViewUtils.isLayoutRtl(view) ? systemBarInsets.right : systemBarInsets.left;

Minimal sample app repro: https://github.com/t895/yuzu/tree/material-update

Android API version: API 34

Material Library version: 1.10.0+ The bug was introduced with this commit

Device: Samsung Galaxy S21 and Google Pixel 7 both running their latest stable software updates as of 1/11/24

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions