title: RecyclerView scrolls to top on notifyDataSetChanged in chat screen
body: <p>I am trying to create messaging kind of screen using recyclerView which will start from bottom and will loadMore data when user reached top end of chat. But I am facing this weird issue. </p>
  
  <p>My recyclerView scrolls to top on calling notifyDataSetChanged. Due to this onLoadMore gets called multiple times.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>LinearLayoutManager llm = new LinearLayoutManager(context);
  llm.setOrientation(LinearLayoutManager.VERTICAL);
  llm.setStackFromEnd(true);
  recyclerView.setLayoutManager(llm);
  </code></pre>
  
  <p>** In Adapter</p>
  
  <pre><code> @Override
  public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
      if (messages.size() &gt; 8 &amp;&amp; position == 0 &amp;&amp; null != mLoadMoreCallbacks) {
          mLoadMoreCallbacks.onLoadMore();
      }
  </code></pre>
  
  <p>** In Activity</p>
  
  <pre><code>@Override
  public void onLoadMore() {
      // Get data from database and add into arrayList
        chatMessagesAdapter.notifyDataSetChanged();
  }
  </code></pre>
  
  <p>It's just that recyclerView scrolls to top. If scrolling to top stops, this issue will be resolved. Please help me to figure out the cause of this issue. Thanks in advance.</p>