Skip to content

Commit

Permalink
Add //% QUAD_SURFACE_ON_CREATE_INPUT_CONNECTION to java/MainActivity.
Browse files Browse the repository at this point in the history
I need to modify onCreateInputConnection() to return my own InputConnection so I can catch user typing suggestions. Putting this here allows me to return early with my own custom input connection.
  • Loading branch information
jkds authored and not-fl3 committed Nov 30, 2024
1 parent da4efb1 commit 55a94c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions java/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ public boolean onKey(View v, int keyCode, KeyEvent event) {
// For some reason it only works if placed here and not in the parent layout.
@Override
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
//% QUAD_SURFACE_ON_CREATE_INPUT_CONNECTION

InputConnection connection = super.onCreateInputConnection(outAttrs);
outAttrs.imeOptions |= EditorInfo.IME_FLAG_NO_FULLSCREEN;
return connection;
Expand Down

0 comments on commit 55a94c5

Please sign in to comment.