java.lang.IllegalStateException: Must be called from the main thread. Was: Thread[RxIoScheduler-2,5,main]

Stack Overflow | Dev | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 1

    How to implement search feature with SearchView, Retrofit and RxJava (RxBindings)?

    Stack Overflow | 7 months ago | Dev
    java.lang.IllegalStateException: Must be called from the main thread. Was: Thread[RxIoScheduler-2,5,main]

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Must be called from the main thread. Was: Thread[RxIoScheduler-2,5,main]

      at com.jakewharton.rxbinding.internal.Preconditions.checkUiThread()
    2. com.jakewharton.rxbinding
      SearchViewQueryTextChangesOnSubscribe.call
      1. com.jakewharton.rxbinding.internal.Preconditions.checkUiThread(Preconditions.java:35)
      2. com.jakewharton.rxbinding.support.v7.widget.SearchViewQueryTextChangesOnSubscribe.call(SearchViewQueryTextChangesOnSubscribe.java:18)
      3. com.jakewharton.rxbinding.support.v7.widget.SearchViewQueryTextChangesOnSubscribe.call(SearchViewQueryTextChangesOnSubscribe.java:10)
      3 frames