Skip to content

Commit

Permalink
fix CalledFromWrongThreadException in searhActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
essmigel committed Jan 31, 2020
1 parent 401f7e0 commit 89ebfb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class SearchActivity : AppCompatActivity() {
.debounce(300, TimeUnit.MILLISECONDS)
.filter { text ->
if (text.isEmpty()) {
textViewResult.text = ""
runOnUiThread { textViewResult.text = "" }
return@filter false
} else {
return@filter true
Expand Down

0 comments on commit 89ebfb4

Please sign in to comment.