{"action":"created","issue":{"url":"https://api.github.com/repos/lapism/SearchView/issues/79","repository_url":"https://api.github.com/repos/lapism/SearchView","labels_url":"https://api.github.com/repos/lapism/SearchView/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/lapism/SearchView/issues/79/comments","events_url":"https://api.github.com/repos/lapism/SearchView/issues/79/events","html_url":"https://github.com/lapism/SearchView/issues/79","id":156166595,"number":79,"title":"Request result to suggestion list","user":{"login":"N1cE174","id":8428514,"avatar_url":"https://avatars.githubusercontent.com/u/8428514?v=3","gravatar_id":"","url":"https://api.github.com/users/N1cE174","html_url":"https://github.com/N1cE174","followers_url":"https://api.github.com/users/N1cE174/followers","following_url":"https://api.github.com/users/N1cE174/following{/other_user}","gists_url":"https://api.github.com/users/N1cE174/gists{/gist_id}","starred_url":"https://api.github.com/users/N1cE174/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N1cE174/subscriptions","organizations_url":"https://api.github.com/users/N1cE174/orgs","repos_url":"https://api.github.com/users/N1cE174/repos","events_url":"https://api.github.com/users/N1cE174/events{/privacy}","received_events_url":"https://api.github.com/users/N1cE174/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-22T18:53:22Z","updated_at":"2016-05-23T13:36:51Z","closed_at":null,"body":"I use `onQueryTextChange` for web reques and when I'll got response how to replace current suggestion list (or SearchAdapter) to new list (or Adapter) from response?\r\n\r\nI tried use ` mSearchView.setAdapter(new searchAdapterFromResponse)` but after request success dropdown suggestions list just hide\r\n\r\nMb you'll add method for Search Adapter that will update suggestion array list?\r\nOr change in [SearchView.java](https://github.com/lapism/SearchView/blob/master/searchview/src/main/java/com/lapism/searchview/SearchView.java#L617)\r\n```\r\npublic void setAdapter(SearchAdapter adapter) {\r\n        mSearchAdapter = adapter;\r\n        mRecyclerView.setAdapter(mSearchAdapter);\r\n    }\r\n```\r\nto \r\n```\r\npublic void setAdapter(RecyclerView.Adapter adapter) {\r\n        mSearchAdapter = adapter;\r\n        mRecyclerView.setAdapter(mSearchAdapter);\r\n    }\r\n```\r\nfor using custom adapter.\r\n\r\nOr tell me better solution without changing lib sources\r\n"},"comment":{"url":"https://api.github.com/repos/lapism/SearchView/issues/comments/220982186","html_url":"https://github.com/lapism/SearchView/issues/79#issuecomment-220982186","issue_url":"https://api.github.com/repos/lapism/SearchView/issues/79","id":220982186,"user":{"login":"lapism","id":8614327,"avatar_url":"https://avatars.githubusercontent.com/u/8614327?v=3","gravatar_id":"","url":"https://api.github.com/users/lapism","html_url":"https://github.com/lapism","followers_url":"https://api.github.com/users/lapism/followers","following_url":"https://api.github.com/users/lapism/following{/other_user}","gists_url":"https://api.github.com/users/lapism/gists{/gist_id}","starred_url":"https://api.github.com/users/lapism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lapism/subscriptions","organizations_url":"https://api.github.com/users/lapism/orgs","repos_url":"https://api.github.com/users/lapism/repos","events_url":"https://api.github.com/users/lapism/events{/privacy}","received_events_url":"https://api.github.com/users/lapism/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T13:36:51Z","updated_at":"2016-05-23T13:36:51Z","body":"Btw. Nice app ;)"}}
{"actor":{"display_login":"lapism"}}