-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Compiler Warnings as Errors - WordPress Module - WindowManager #17256
Copy link
Copy link
Closed
Milestone
Description
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. UsegetInsets(int)withType#systemBars()instead. - This
consumeSystemWindowInsets()method was deprecated in API level 30. Consuming of different parts individually of aWindowInsetsinstance is deprecated, sinceWindowInsetscontains many different insets. UseCONSUMEDinstead to stop dispatching insets. - This
getDefaultDisplay()method was deprecated in API level 30. UseContext#getDisplay()instead. - This
getSize(...)method was deprecated in API level 30. UseWindowMetricsinstead. Obtain aWindowMetricsinstance by callingWindowManager#getCurrentWindowMetrics(), then callWindowMetrics#getBounds()to get the dimensions of the application window. - This
getSystemUiVisibility()method was deprecated in API level 30.SystemUiVisibilityflags are deprecated. UseWindowInsetsControllerinstead. - This
setSystemUiVisibility(...)method was deprecated in API level 30.SystemUiVisibilityflags are deprecated. UseWindowInsetsControllerinstead.
For more info see:
Reactions are currently unavailable