diff --git a/android/app/src/main/java/com/classicube/MainActivity.java b/android/app/src/main/java/com/classicube/MainActivity.java index d007ace29..beb5b32cf 100644 --- a/android/app/src/main/java/com/classicube/MainActivity.java +++ b/android/app/src/main/java/com/classicube/MainActivity.java @@ -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 diff --git a/src/Platform_Posix.c b/src/Platform_Posix.c index 6b7b1b914..4c912c653 100644 --- a/src/Platform_Posix.c +++ b/src/Platform_Posix.c @@ -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