osfans / trime

同文安卓輸入法平臺3.x/Android-rime/Rime Input Method Engine for Android
http://osfans.github.io/trime/
GNU General Public License v3.0
3.08k stars 372 forks source link

点击验证码输入框,就崩溃退出 #1047

Open superLei opened 1 year ago

superLei commented 1 year ago

Describe the bug 点击手机验证码输入框,就崩溃。

To Reproduce Steps to reproduce the bug: 发现只要是app登录界面有要输入手机验证码地方,一点击验证码组件就会触发崩溃。

Screenshots image

Smartphone (please complete the following information):

Additional context 没有程序崩溃的日志,程序好像也没有打印出来。

wxyzh commented 1 year ago

可能是因为没有缺少数字键盘

superLei commented 1 year ago

输入手机号的时候,可以自动调出数字键盘。输入验证码,就会崩溃

shitlime commented 1 year ago

在百度网盘中并没有这个问题,可能是系统太新

OS: HarmonyOS 3.0.0.165 相当于 Android10

Trime: 3.2.14

superLei commented 1 year ago

android13的数字键盘调用是不是有改变,trime中有新的数字键盘支持吗?

shitlime commented 1 year ago

Google官方的文档中并没有提及关于数字键盘的改变,且有人测试Android12中同文在百度云盘的验证码输入框可正常输入

Android13变更: https://developer.android.google.cn/about/versions/13/summary?hl=zh-cn

或许你可以再次检查你的数字键盘相关配置

superLei commented 1 year ago

这是我的配置: keyboards: [.default, default, pinyin_simp, wubi86_number, symbols_4row] #键盘配置

解决:

  1. 把数字键盘命名由wubi86_number修改成number
  2. 并同步修改了keyboards中的键盘配置好了。

总结: 的确是数字键盘相关配置有问题,应该是程序中只认数字键盘为'number'这个字段名称。但是当数字键盘名称为'wubi86_number'的时候,大部分场景下还是可以调出数字键盘,只是部分场景会触发应用崩溃。

WhiredPlanck commented 8 months ago

请看新版本有无此问题。每夜版:https://github.com/osfans/trime/releases/tag/nightly