public static boolean isStatusBarShown(Activity context) {
WindowManager.LayoutParams params = context.getWindow().getAttributes();
int paramsFlag = params.flags & (~WindowManager.LayoutParams.FLAG_FULLSCREEN);
return paramsFlag == params.flags;
}
网友评论