-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 修复 inputInfo 指定最大长度时可能导致 InputDialog 输入框无法选中、输入法无法弹出的问题,其本质原因为:在指定 MAX_LENGTH 时需要设置 inputType 包含 InputType.TYPE_CLASS_TEXT,否则设置无法生效,InputFilter.LengthFilter 必须配合 TYPE_CLASS_TEXT 使用,但强制设置 InputType.TYPE_CLASS_TEXT 又会导致设置 inputType 为 InputType.TYPE_CLASS_NUMBER 时可以输入除数字以外的小数点,这不符合预期,目前的修复方案为检查是否包含有效的类标志,如果没有设置有效的类标志,默认添加 TYPE_CLASS_TEXT 来避免出现问题,详见 MessageDialog.java:683~693 测试可以兼容两种情况以解决问题。
- Loading branch information
Showing
2 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters