mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 14:15:41 +12:00
keep screen on in `gameactivity
` (#450)
This commit is contained in:
parent
e71a8bec9c
commit
498d19fa51
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ public class GameActivity extends BaseActivity implements EmulatorCallback {
|
|||
@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();
|
||||
|
|
Loading…
Add table
Reference in a new issue