Skip to content

Commit

Permalink
keep screen on in gameactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Mar 8, 2024
1 parent e71a8be commit e96f577
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ private void changeOverlayVisibility(boolean visible) {
@Override
protected void onResume() {
super.onResume();
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
InputHandler.reset();
Expand Down

0 comments on commit e96f577

Please sign in to comment.