Skip to content

Commit

Permalink
Disable virtual keyboard focus adjustment on Android
Browse files Browse the repository at this point in the history
Fixes #37190

The default adjustment setting was causing the view to pan down in order
to adjust the focus on the text content.

We don't need any focus adjustment since we're using a fixed size window
for our application.

Documentation:
https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_ADJUST_NOTHING
  • Loading branch information
pouleyKetchoupp committed Jul 20, 2020
1 parent d14932a commit d7aaec8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle ic
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);

Expand Down

0 comments on commit d7aaec8

Please sign in to comment.