Skip to content

Change inset handling from deprecated SYSTEM_UI... flags to WindowInsetsController #133074

Description

@gmackall

The android embedding makes extensive use of the now deprecated View.SYSTEM_UI... flags. These were deprecated in API level 30.

We should replace the usages according to each of their recommendations. For most of these flags this means replacing with a corresponding method call in WindowInsetsController, though from a brief glance it looks like some of them will be more complicated to replace.

See some places where these are being used in the android embedding:
https://github.com/flutter/engine/blob/06e1ed21b78c05b3b44d8b40f8b09e8bb6004bfc/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java#L33C12-L33C40
https://github.com/flutter/engine/blob/06e1ed21b78c05b3b44d8b40f8b09e8bb6004bfc/shell/platform/android/io/flutter/plugin/editing/ImeSyncDeferringInsetsCallback.java#L171
https://github.com/flutter/engine/blob/06e1ed21b78c05b3b44d8b40f8b09e8bb6004bfc/shell/platform/android/io/flutter/embedding/android/FlutterView.java#L692

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.team-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions