android: chatedit draw select handles on top so they aren't clipped by view rect

This commit is contained in:
darkfi
2025-04-24 14:20:09 +02:00
parent c8003d98b8
commit 37b7cd3c43
9 changed files with 214 additions and 117 deletions

View File

@@ -89,6 +89,10 @@ public class InvisibleInputView extends View {
| EditorInfo.IME_ACTION_GO;
outAttrs.initialSelStart = getSelectionStart();
outAttrs.initialSelEnd = getSelectionEnd();
//if (outAttrs.initialSelStart != 0) {
// Log.d("darkfi", " select: [" + outAttrs.initialSelStart + ", " +
// outAttrs.initialSelEnd + "]");
//}
inputConnection = new CustomInputConnection(id, editable, this);
onCreateInputConnect(id);