i dont get anything in my recylerview when i slect image from gallery to show in recylerview android : i am just trying to pick image from gallery and show in recylerview but when i go to the gallery and slect image it show blank recylerview here is my code

public void onActivityResult(int requestCode, int resultCode, Intent data) {

        super.onActivityResult(requestCode, resultCode, data);
        if(resultCode == GALLERY)
        {
            if (data != null)
            {

                Bitmap photo = (Bitmap) data.getExtras().get("data");
                imageView.setImageBitmap(photo);
                recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext()));
                recyclerView.setItemAnimator(new DefaultItemAnimator());
                adapter = new ImageAdapter(imageArrayList);
                recyclerView.setAdapter(adapter);
                layoutManager = new LinearLayoutManager(this);
                recyclerView.setLayoutManager(layoutManager);
                //ImageAdapter adapter = new ImageAdapter (data, MainActivity.this);
                //recyclerView.setLayoutManager(new LinearLayoutManager(MainActivity.this));
                recyclerView.smoothScrollToPosition(0);
                //Counter = false;
            }
        }
    }