@devries-cameron20 / t3code Mirror · read-only / commits / 61c7601100
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 03:15 UTC

fix(mobile): Android composer no longer accepts autofill (#27489)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Nov 5, 2026 at 17:00 UTC 61c76011004deb4370887efdf967d314fc18005d
2 files changed +13
apps/mobile/modules/t3-composer-editor/android/src/main/java/expo/modules/t3composereditor/T3ComposerEditorView.kt
+4
@@ -23,6 +23,7 @@ import android.view.Gravity
23 import android.view.GestureDetector
24 import android.view.MotionEvent
25 import android.view.KeyEvent
26 +import android.view.View
27 import android.view.ViewGroup
28 import android.view.inputmethod.EditorInfo
29 import android.view.inputmethod.InputConnection
@@ -596,6 +597,9 @@ internal class SelectionAwareEditText(
597 var maxInputChars = Int.MAX_VALUE
598 var clipboardFragment = ""
599
600 + // Keeps autofill services such as SMS verification codes from writing into the draft.
601 + override fun getAutofillType(): Int = View.AUTOFILL_TYPE_NONE
602 +
603 /**
604 * Editable TextView hints do not ellipsize, so long placeholders wrap and grow the composer.
605 * Truncate the hint to the measured width instead.
apps/mobile/modules/t3-composer-editor/android/src/test/java/expo/modules/t3composereditor/ComposerPasteTest.kt
+9
@@ -180,6 +180,15 @@ class ComposerPasteTest {
180 assertNull(intercepted)
181 }
182
183 + @Test
184 + fun autofillCannotWriteIntoTheDraft() {
185 + assertEquals(
186 + "Autofill services such as SMS verification codes must not target the composer",
187 + View.AUTOFILL_TYPE_NONE,
188 + editor.autofillType,
189 + )
190 + }
191 +
192 private fun dropEditor(): SelectionAwareEditText {
193 val activity = Robolectric.buildActivity(Activity::class.java).setup().get()
194 return SelectionAwareEditText(activity).apply {