Skip to content

Compiler Warnings as Errors - WordPress Module - WindowManager #17256

@ParaskP7

Description

@ParaskP7

Parent #17173

This issue is about resolving the getSystemWindowInsetTop(...), consumeSystemWindowInsets(), getDefaultDisplay(), getSize(...), getSystemUiVisibility() and setSystemUiVisibility(...) compile warnings for the WordPress module, and possibly, for the lib modules as well.

PS: Some of those warnings are already deprecated (see here and here).


  • This getSystemWindowInsetTop(...) method was deprecated in API level 30. Use getInsets(int) with Type#systemBars() instead.
  • This consumeSystemWindowInsets() method was deprecated in API level 30. Consuming of different parts individually of a WindowInsets instance is deprecated, since WindowInsets contains many different insets. Use CONSUMED instead to stop dispatching insets.
  • This getDefaultDisplay() method was deprecated in API level 30. Use Context#getDisplay() instead.
  • This getSize(...) method was deprecated in API level 30. Use WindowMetrics instead. Obtain a WindowMetrics instance by calling WindowManager#getCurrentWindowMetrics(), then call WindowMetrics#getBounds() to get the dimensions of the application window.
  • This getSystemUiVisibility() method was deprecated in API level 30. SystemUiVisibility flags are deprecated. Use WindowInsetsController instead.
  • This setSystemUiVisibility(...) method was deprecated in API level 30. SystemUiVisibility flags are deprecated. Use WindowInsetsController instead.

For more info see:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions