Skip to content

Commit

Permalink
Merge pull request #52 from essmigel/kotlin
Browse files Browse the repository at this point in the history
fix CalledFromWrongThreadException in searhActivity
  • Loading branch information
amitshekhariitbhu committed Feb 2, 2020
2 parents 401f7e0 + 89ebfb4 commit 81556bb
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 81556bb

Please sign in to comment.