Vector-Pinball icon indicating copy to clipboard operation
Vector-Pinball copied to clipboard

Immersive mode

Open a1291762 opened this issue 4 years ago • 0 comments

I find this game frustrating because my thumbs obscure the screen. I try to keep them as low as possible but the nav buttons get in the way (blocking the presses or worse, activate).

It seems to me that Immersive mode was designed for this.

It's as simple as:

setContentView(R.layout.main);
View v = findViewById(android.R.id.content);
v.setSystemUiVisibility(View.SYSTEM_UI_FLAG_IMMERSIVE|View.SYSTEM_UI_FLAG_FULLSCREEN|View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);

Although maybe it should be a preference? (and there might need to be some version checks depending on the supported Android releases).

I'm happy to do up a pull request. Just making sure this is something that would be accepted.

a1291762 avatar Feb 25 '21 11:02 a1291762