📅  最后修改于: 2022-03-11 14:52:45.291000             🧑  作者: Mango
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
to disable keep screen on:
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);