Skip to content

Error when hiding / showing keyboard #55

@maztheman

Description

@maztheman

So when you try to hide after showing the keyboard, eventually you get the error listed below. Note the bolded hide(ime) line where the main thread is doing it. Seems this is what is causing the issue. Any thoughts? This causes the chrome insets to be calculated as if the keyboard was hidden even when the keyboard is shown.

04-02 13:30:27.118 24991 25017 D InsetsController: show(ime(), fromIme=false)
04-02 13:30:27.120 24991 25017 D InsetsController: Setting requestedVisibleTypes to -2 (was -10)
04-02 13:30:34.459 24991 24991 D InsetsController: hide(ime(), fromIme=false)
04-02 13:30:39.532 24991 25017 D InsetsController: show(ime(), fromIme=false)
04-02 13:30:39.532 24991 25017 D InsetsController: Setting requestedVisibleTypes to -2 (was -10)
04-02 13:30:52.003 24991 25017 W System.err: android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. Expected: main Calling: Thread-2
04-02 13:30:52.004 24991 25017 W System.err: at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:11213)
04-02 13:30:52.004 24991 25017 W System.err: at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:2551)
04-02 13:30:52.004 24991 25017 W System.err: at android.view.ViewRootImpl.notifyInsetsChanged(ViewRootImpl.java:2513)
04-02 13:30:52.004 24991 25017 W System.err: at android.view.ViewRootInsetsControllerHost.notifyInsetsChanged(ViewRootInsetsControllerHost.java:56)
04-02 13:30:52.004 24991 25017 W System.err: at android.view.InsetsController.notifyVisibilityChanged(InsetsController.java:1884)
04-02 13:30:52.004 24991 25017 W System.err: at android.view.InsetsController.onAnimationStateChanged(InsetsController.java:1845)
04-02 13:30:52.005 24991 25017 W System.err: at android.view.InsetsController.controlAnimationUncheckedInner(InsetsController.java:1563)
04-02 13:30:52.005 24991 25017 W System.err: at android.view.InsetsController.controlAnimationUnchecked(InsetsController.java:1357)
04-02 13:30:52.005 24991 25017 W System.err: at android.view.InsetsController.applyAnimation(InsetsController.java:2048)
04-02 13:30:52.005 24991 25017 W System.err: at android.view.InsetsController.applyAnimation(InsetsController.java:2022)
04-02 13:30:52.005 24991 25017 W System.err: at android.view.InsetsController.show(InsetsController.java:1177)
04-02 13:30:52.005 24991 25017 W System.err: at android.view.inputmethod.InputMethodManager.showSoftInput(InputMethodManager.java:2426)
04-02 13:30:52.005 24991 25017 W System.err: at android.view.inputmethod.InputMethodManager.showSoftInput(InputMethodManager.java:2376)
04-02 13:30:52.005 24991 25017 W System.err: at android.view.inputmethod.InputMethodManager.showSoftInput(InputMethodManager.java:2368)
04-02 13:30:52.005 24991 25017 W System.err: at android.view.inputmethod.InputMethodManager.showSoftInput(InputMethodManager.java:2296)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions