开发者

What does KeyboardView.closing() do?

开发者 https://www.devze.com 2023-03-11 13:42 出处:网络
Does anybody know what KeyboardView开发者_运维知识库.closing() does? It is undocumented, or rather it\'s description in the documentation is blank (like sooooo many other methods).

Does anybody know what KeyboardView开发者_运维知识库.closing() does? It is undocumented, or rather it's description in the documentation is blank (like sooooo many other methods).

Thanks in advance, Barry


I believe this is what it looks like internally (source):

public void closing() {
    if (mPreviewPopup.isShowing()) {
        mPreviewPopup.dismiss();
    }
    removeMessages();

    dismissPopupKeyboard();
    mBuffer = null;
    mCanvas = null;
    mMiniKeyboardCache.clear();
}

By the look of it, it does what you might expect. It clears the keyboard cache, the bitmap image used in the rendering of the keyboard and dismisses the virtual keyboard if it's showing.

0

精彩评论

暂无评论...
验证码 换一张
取 消