title: How to correctly scroll after item inserted into PagedListAdapter
body: <p>I am using the Android Arch <code>PagedListAdapter</code> class. The issue I have run into is that since my app is a chat style app, I need to scroll to position 0 when an item is inserted. But the PagedListAdapter finds the diffs and calls necessary methods on the background thread so it seems that there is no dependable way to call <code>layoutManager.scrollToPosition(0)</code></p>
  
  <p>If anyone has any ideas on how I could scroll at the right time, it would be greatly appreciated. Thanks!</p>
  
  <p>Here is my Room Dao:</p>
  
  <pre><code>@Dao
  abstract class MessagesDao {
  
      @Query("SELECT ...")
      abstract fun getConversation(threadId: String): DataSource.Factory&lt;Int, Conversation&gt;
  
  }
  </code></pre>
  
  <p>and then the LivePagedListBuilder:</p>
  
  <pre><code>LivePagedListBuilder(database.messagesDao.getConversation(threadId), PagedList.Config.Builder()
              .setInitialLoadSizeHint(20)
              .setPageSize(12)
              .setEnablePlaceholders(true)
              .build()).build()
  </code></pre>