Skip to content

Commit

Permalink
Don't explicitly check for the UI thread
Browse files Browse the repository at this point in the history
  • Loading branch information
AChep committed Mar 15, 2021
1 parent c7e3351 commit 6dbc2ba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions library/src/main/java/com/artemchep/bindin/BindIn.kt
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ fun LifecycleOwner.bindBlock(
}

val registration = {
require(isMainThread) { "Unbinding must be done from the UI thread!" }

lifecycle.removeObserver(observer)
job?.cancel()
job = null
Expand Down
5 changes: 0 additions & 5 deletions library/src/main/java/com/artemchep/bindin/Util.kt

This file was deleted.

0 comments on commit 6dbc2ba

Please # to comment.