Browse Source

Merge pull request #40484 from nekomatata/android-virtual-keyboard-adjustment

Disable virtual keyboard focus adjustment on Android
Rémi Verschelde 5 years ago
parent
commit
173ebe4872
1 changed files with 1 additions and 0 deletions
  1. 1 0
      platform/android/java/lib/src/org/godotengine/godot/Godot.java

+ 1 - 0
platform/android/java/lib/src/org/godotengine/godot/Godot.java

@@ -467,6 +467,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
 		final Activity activity = getActivity();
 		Window window = activity.getWindow();
 		window.addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
+		window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING);
 		mClipboard = (ClipboardManager)activity.getSystemService(Context.CLIPBOARD_SERVICE);
 		pluginRegistry = GodotPluginRegistry.initializePluginRegistry(this);