mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-08 23:10:52 -04:00
Android: Revert render over display cutout support, as it causes the onscren keyboard on modern android devices to no longer resize the game view to be smaller (thanks Program)
e.g. can't see in-game chat input due to it being covered by the onscreen keyboard
This commit is contained in:
parent
bf54083c69
commit
53077d36d9
@ -180,7 +180,11 @@ public class MainActivity extends Activity {
|
||||
window.setFormat(PixelFormat.RGBX_8888);
|
||||
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_UNSPECIFIED | WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
|
||||
requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||
renderOverDisplayCutouts();
|
||||
// TODO: rendering over display cutouts causes a problem where opening onscreen keyboard
|
||||
// stops resizing the game view. (e.g. meaning you can't see in-game chat input anymore)
|
||||
// Apparently intentional (see LayoutParams.SOFT_INPUT_ADJUST_RESIZE documentation)
|
||||
// Need to find a solution that both renders over display cutouts and doesn't mess up onscreen input
|
||||
// renderOverDisplayCutouts();
|
||||
// TODO: semaphore for destroyed and surfaceDestroyed
|
||||
|
||||
// avoid FileUriExposed exception when taking screenshots on recent Android versions
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "Window.h"
|
||||
#include "Utils.h"
|
||||
#include "Errors.h"
|
||||
#include "PackedCol.h"
|
||||
|
||||
/* POSIX can be shared between Linux/BSD/macOS */
|
||||
#include <errno.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user