Repository navigation
Commit 6f99897
fix(mobile): Android composer no longer accepts autofill
The composer's EditText kept an editable TextView's default autofill
type, so autofill services such as Google's SMS verification codes
treated it as a target and could write an OTP into the draft, and
long-pressing the empty composer offered Android's "Autofill" action.
Report AUTOFILL_TYPE_NONE, as the terminal input already does. That makes
View.isAutofillable() false, which keeps the view out of autofill
requests and hides the Autofill selection action. IME features (Gboard
suggestion and code chips, clipboard, dictation, paste) go through the
input connection and are unaffected. The constant is inlined at compile
time and the override is never called below API 26, so minSdk 24 is fine.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 10618ce commit 6f99897
1 file changed
Lines changed: 4 additions & 0 deletions
File tree
- apps/mobile/modules/t3-composer-editor/android/src/main/java/expo/modules/t3composereditor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
584 | 585 | | |
585 | 586 | | |
586 | 587 | | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
587 | 591 | | |
588 | 592 | | |
589 | 593 | | |
| |||
0 commit comments