Skip to content

Android 12: User experience - Replace deprecated Display APIs with WindowMetrics APIs #16073

@ashiagr

Description

@ashiagr

Parent #16062

Display#getRealSize and getRealMetrics: deprecation

WindowMetrics API was introduced in Android 11 and these methods were deprecated:

Display.getSize()
Display.getMetrics()

In Android 12, following additional methods are deprecated:

Display.getRealSize()
Display.getRealMetrics()

It is recommended to use WindowMetrics instead of these deprecated methods.

Also, consider replacing deprecated methods from WordPress-Utils-Android's DisplayUtils and ImageUtils wherever applicable.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions