Skip to content

Remove usages of Android's getDefaultDisplay() #99421

@camsim99

Description

@camsim99

The method WindowManager#getDefaultDisplay used to get the display that the WindowManager is associated with was deprecated in API 30. The usages of this method in the engine should be replaced with DisplayManager#getDisplay().

Note that the documentation suggests using Context#getDisplay for API 30+, but the DisplayManager API provides the same functionality for API 17+.

Part of #98602.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.engineflutter/engine related. See also e: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions