fix status bar problem
This commit is contained in:
@@ -416,10 +416,11 @@ public final class BarUtils {
|
||||
|
||||
public static void hideStatusBarAndSticky(@NonNull Window window){
|
||||
final ViewGroup decorView = (ViewGroup) window.getDecorView();
|
||||
final int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||
| View.SYSTEM_UI_FLAG_FULLSCREEN
|
||||
final int uiOptions = View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
|
||||
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
|
||||
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||
| View.SYSTEM_UI_FLAG_FULLSCREEN;
|
||||
decorView.setSystemUiVisibility(decorView.getSystemUiVisibility() | uiOptions);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user