You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Parent #17173
This issue is about resolving the
getSystemWindowInsetTop(...)
,consumeSystemWindowInsets()
,getDefaultDisplay()
,getSize(...)
,getSystemUiVisibility()
andsetSystemUiVisibility(...)
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).
getSystemWindowInsetTop(...)
method was deprecated in API level 30. UsegetInsets(int)
withType#systemBars()
instead.consumeSystemWindowInsets()
method was deprecated in API level 30. Consuming of different parts individually of aWindowInsets
instance is deprecated, sinceWindowInsets
contains many different insets. UseCONSUMED
instead to stop dispatching insets.getDefaultDisplay()
method was deprecated in API level 30. UseContext#getDisplay()
instead.getSize(...)
method was deprecated in API level 30. UseWindowMetrics
instead. Obtain aWindowMetrics
instance by callingWindowManager#getCurrentWindowMetrics()
, then callWindowMetrics#getBounds()
to get the dimensions of the application window.getSystemUiVisibility()
method was deprecated in API level 30.SystemUiVisibility
flags are deprecated. UseWindowInsetsController
instead.setSystemUiVisibility(...)
method was deprecated in API level 30.SystemUiVisibility
flags are deprecated. UseWindowInsetsController
instead.For more info see:
The text was updated successfully, but these errors were encountered: