You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Android] After enabling autofillHints, the keyboard automatically hide after entering the first letter #159670
My Android phone is OnePlus 9, I'm using WeChat Input Method, and this is my screen recording.
input.mov
Logs
No response
Flutter Doctor output
Doctor output
Doctor summary (to see all details, runflutter doctor -v):[✓] Flutter (Channel stable, 3.19.6, on macOS 15.1.1 24B91 darwin-arm64, locale zh-Hans-CN)[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)[✓] Xcode - develop for iOS and macOS (Xcode 15.4)[✓] Chrome - develop for the web[✓] Android Studio (version 2023.1)[✓] VS Code (version 1.95.3)[✓] Connected device (4 available)[✓] Network resources• No issues found!
@jiagengArctuition
What android device does this occur on ? Can you provide make and model of it ? Does it occur with Gboard or default keyboard ?
Also, please try to upgrade to latest stable and re-run your scenario to check if the behavior still persist or not.
@darshankawar I tried Gboard, and indeed it doesn't have this issue. However, both the system's built-in Sogou input method and the installed WeChat input method have this problem.
@darshankawar I tried other Android apps on my phone, and they also have autofill, but this strange behavior does not occur when I use Sogou or WeChat input methods. It seems to be a Flutter-specific issue.
@jiagengArctuition
What Android device are you using that shows this issue ? I verified on S10+ with which the name is autofilled and I am able to input letter after it properly, but with Chinese input language, I am unable to see the autofill hints showing up. Can you provide us a short video ?
@darshankawar My Android phone is OnePlus 9, I'm using WeChat Input Method, and this is my screen recording.
input.mov
Here are the download links for WeChat Input Method and Sogou Input Method. They are the most popular input methods in China. And they work normally when used in other applications.
Thanks for the update. I installed the Sogou input keyboard on S10+ device and using it, was able to replicate the reported behavior on latest sdk versions.
This issue is assigned to @LongCatIsLooong but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
This issue was assigned to @LongCatIsLooong but has had no status updates in a long time. To remove any ambiguity about whether the issue is being worked on, the assignee was removed.
On Android, when a TextField with autofillHints (e.g. AutofillHints.telephoneNumber or AutofillHints.oneTimeCode) receives focus, the system autofill popup appears. After the user types the first character, the autofill popup is dismissed, which triggers PHASE_CLIENT_ON_CONTROLS_CHANGED — this cancels the IME and destroys the TextInputConnection, closing the keyboard.
Setting autofillHints to an empty list confirms this is caused by the autofill framework because without it, the keyboard stays open as expected.
Logcat output after first keystroke:
D/Autofill Status: Autofill popup was hidden.
I/ImeTracker: onCancelled at PHASE_CLIENT_ON_CONTROLS_CHANGED
D/InsetsController: hide(ime())
D/InsetsController: Setting requestedVisibleTypes to 503 (was 511)
D/VRI[MainActivity]: WindowInsets changed: ime:null
D/FlutterJNI: Sending viewport metrics to the engine. (×27)
W/RemoteInputConnectionImpl: requestCursorUpdates on inactive InputConnection
Activity
darshankawar commentedon Dec 3, 2024
@jiagengArctuition
What android device does this occur on ? Can you provide make and model of it ? Does it occur with Gboard or default keyboard ?
Also, please try to upgrade to latest stable and re-run your scenario to check if the behavior still persist or not.
jiagengArctuition commentedon Dec 3, 2024
@darshankawar I tried Gboard, and indeed it doesn't have this issue. However, both the system's built-in Sogou input method and the installed WeChat input method have this problem.
jiagengArctuition commentedon Dec 3, 2024
@darshankawar I tried other Android apps on my phone, and they also have autofill, but this strange behavior does not occur when I use Sogou or WeChat input methods. It seems to be a Flutter-specific issue.
darshankawar commentedon Dec 4, 2024
@jiagengArctuition
Did you try to upgrade to latest stable to check if the issue persist or not ?
jiagengArctuition commentedon Dec 4, 2024
@darshankawar Yes, this issue also exists in the latest version 3.24.5
darshankawar commentedon Dec 4, 2024
@jiagengArctuition
What Android device are you using that shows this issue ? I verified on S10+ with which the name is autofilled and I am able to input letter after it properly, but with Chinese input language, I am unable to see the autofill hints showing up. Can you provide us a short video ?
jiagengArctuition commentedon Dec 4, 2024
@darshankawar My Android phone is OnePlus 9, I'm using WeChat Input Method, and this is my screen recording.
input.mov
Here are the download links for WeChat Input Method and Sogou Input Method. They are the most popular input methods in China. And they work normally when used in other applications.
https://z.weixin.qq.com/web/changelog/android
https://apkdl.sogouimecdn.com/wapdl/android/apk/SogouInput_12.0.1_android_sweb.apk
darshankawar commentedon Dec 5, 2024
Thanks for the update. I installed the Sogou input keyboard on S10+ device and using it, was able to replicate the reported behavior on latest sdk versions.
19 remaining items
flutter-triage-bot commentedon Nov 11, 2025
This issue is assigned to @LongCatIsLooong but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
flutter-triage-bot commentedon Jan 27, 2026
This issue was assigned to @LongCatIsLooong but has had no status updates in a long time. To remove any ambiguity about whether the issue is being worked on, the assignee was removed.
kaling852 commentedon Apr 10, 2026
this issue still existing in 3.41.2
Environment:
Flutter 3.41.2 (stable, latest)
Dart 3.11.0
Device: Pixel 10, Android 16 (API 36)
Android SDK 36.1.0
On Android, when a TextField with autofillHints (e.g. AutofillHints.telephoneNumber or AutofillHints.oneTimeCode) receives focus, the system autofill popup appears. After the user types the first character, the autofill popup is dismissed, which triggers PHASE_CLIENT_ON_CONTROLS_CHANGED — this cancels the IME and destroys the TextInputConnection, closing the keyboard.
Setting autofillHints to an empty list confirms this is caused by the autofill framework because without it, the keyboard stays open as expected.
Logcat output after first keystroke:
prefanatic commentedon Jul 17, 2026
I've opened up #189662, which aims to address and resolve this issue. cc @darshankawar
fix(app): 密码管理器填充弹窗关闭后输入法不再被收起