// [ 조명 관련 설정 ]
@Override
protected void onResume() {
super.onResume();
if( keepScreenOn ) {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
}
}
@Override
protected void onPause() {
//화면 절전 모드 해제
super.onPause();
if( keepScreenOn ) {
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
}
}
toggle menu