译文
I found a logical problem when you judge the pop-up panel or keyboard, simply judge whether the panel is displayed, judge the switch input method, or the panel. If in the current, under the panel, I clicked the List area, hid the panel, and then I clicked the toggle button again. This time it should be the keyboard. I see that your logic is that neither of the two displays, then the panel is displayed, but should there be an interface to optimize the logic?
我发现了一个逻辑问题,就是你在判断弹出面板或者键盘的时候,单纯地以判断面板是否显示,判断切换输入法或者面板。假如在当前在面板下面,我点击了List的区域隐藏了面板,然后我再次点击切换按钮,这个时候应该是显示键盘。我看了你的逻辑是,两个都不显示,则先显示面板,但是是不是应该预留一个接口来优化这个逻辑呢?