From e96f57708ddb357cb0b6b9526027afbad175813e Mon Sep 17 00:00:00 2001 From: Ishan09811 <156402647+Ishan09811@users.noreply.github.com> Date: Fri, 8 Mar 2024 10:55:54 +0530 Subject: [PATCH] keep screen on in ``gameactivity`` --- .../src/main/java/com/panda3ds/pandroid/app/GameActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/GameActivity.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/GameActivity.java index 59a9a3a9d..83d18d99f 100644 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/GameActivity.java +++ b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/GameActivity.java @@ -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();