skip to Main Content

Android Studio – Android Window flag FLAG_TRANSLUCENT_STATUS is deprecated now, How to fix this?

I an trying to update status bar dynamically as below but getting warning that flag FLAG_TRANSLUCENT_STATUS is depricated now, how i can fix this? if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { // clear FLAG_TRANSLUCENT_STATUS flag: getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); // add FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS flag to the…

VIEW QUESTION
Back To Top
Search