Blankj / Blankj/AndroidUtilCode
软键盘收起后又弹出了
Open
bug
- Dominant language
- Java
- Stars
- 33.6k
- Forks
- 10.6k
- PR merge metrics
- No merged PRs in 30d
Description
在业务中使用 showSoftInput(@NonNull final View view),切换键盘代码
```
if (!isShowEmojiPanel) {
KeyboardUtils.hideSoftInput(etMsgSend)
showEmojiFragment()
} else {
KeyboardUtils.showSoftInput(etMsgSend)
hideEmojiFragment()
}
isShowEmojiPanel = !isShowEmojiPanel
```
有一条路径必现软键盘收起后又弹出,查找是 imm.toggleSoftInput 导致,删除 imm.toggleSoftInput 这个代码后没问题了
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.