lp.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;
} else {
lp.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
activity.getWindow().setAttributes(lp);
activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
}
}