I have a recyclerview which is filled in another thread, but the code in addOnScrollListener doesnt work when scrolling.

```
   private class LoadTask extends AsyncTask< NodeList, Void, Void> {

    @Override
    protected Void doInBackground(NodeList... params) {
      recyclerView = (RecyclerView) findViewById(R.id.recyclerview);
    adapter = new RecyclerViewAdapter(JoinSearchApps.this);
    recyclerView.setAdapter(adapter);
    GridLayoutManager lLayout = new GridLayoutManager(JoinSearchApps.this, 1);

    recyclerView.setLayoutManager(lLayout);

    recyclerView.setItemAnimator(new DefaultItemAnimator());
     recyclerView.addOnScrollListener(new PaginationScrollListener(lLayout) {
        @Override
        protected void loadMoreItems() {
             Log.d("inaddOnScrollListener","addOnScrollListener");
          }
       }

        return null;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
          LoadTask  loader=new LoadTask();
          loader.execute();
    }
}

```