Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.
This repository was archived by the owner on Sep 1, 2025. It is now read-only.

CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. #101

@ghost

Description

SnackbarManager will, on occasion throw this error, regardless of whether or or not you wrap it in a try/catch.

Looks like this should be caught from within the Snackbar class

android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:7095)
at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:992)
at android.view.View.requestLayout(View.java:18477)
at android.view.View.requestLayout(View.java:18477)
at android.view.View.requestLayout(View.java:18477)
at android.view.ViewGroup.removeView(ViewGroup.java:4377)
at com.nispok.snackbar.Snackbar.a(Snackbar.java:721)
at com.nispok.snackbar.SnackbarManager.a(SnackbarManager.java:31)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions