Skip to content
Advertisement

Tag: deprecation-warning

Code for setting light status bar in android 11 and below android 11 deprecation warning not going

I am using this code for setting light status bar in android 11 and below android 11. Everything works fine, just a little problem, deprecation warning not going. Answer I just did one thing, since my if statement is fine, I just suppressed warning by using @SuppressWarnings(“deprecation”) I just used this annotation for that particular method which contains this code.

Advertisement