I want to search in database using EditText, and then add items to RecylerView. Now i can just search one item, item displays, and after changing edit text it disappears, i want it to stay, i want every item I've searched for to automatically be added to RecyclerView.
So I thought I can remove ChangeTextListener, and then add it again to search for another item, and so on(?)

In MainActivity.kt

```java
fun Threads() {
        editText.addTextChangedListener(object : TextWatcher {
            override fun beforeTextChanged(
                s: CharSequence, start: Int,
                count: Int, after: Int
         ) {
            }

            override fun onTextChanged(
                s: CharSequence, start: Int,
                before: Int, count: Int
            ) {
                Thread {
//here we search for item
                    val itemsList = db?.costDAO()!!.getByName(s.toString())

                    runOnUiThread {
//here we pass item to Adapter constructor
                            recyclerView.adapter = MyAdapter(this@MainActivity, itemsList)
                            adapter.notifyDataSetChanged()

                    }
                }.start()
            }

            override fun afterTextChanged(s: Editable) { }

```

Cost.DAO

```java
@Dao
interface CostDAO {

    @Query("select * from cost where name like :name")
    fun getByName(name : String) : List<Cost>

```