code: @SuppressLint("RestrictedApi")
      public static void hideStatusBar(Context context) {
          if (Jzvd.TOOL_BAR_EXIST) {
              JZUtils.getWindow(context).setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
          }
      }
docs: 如果是沉浸式的，全屏前就没有状态栏