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");
            recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext()));
            recyclerView.setItemAnimator(new DefaultItemAnimator());
            adapter = new ImageAdapter(imageArrayList);
            layoutManager = new LinearLayoutManager(this);
            //ImageAdapter adapter = new ImageAdapter (data, MainActivity.this);
            //recyclerView.setLayoutManager(new LinearLayoutManager(MainActivity.this));
            //Counter = false;