title: The last image is only appears when I download images from Firebase Storage using RecyclerViewAdapter
body: <p>I want to download my images from <code>Firebase Storage</code> using <code>RecyclerView</code> . The last image is only appears and the other images are there but not appear on screen (Blank space instead of image) . </p>
  
  <p>I made sure that the rest of images are appear individually . </p>
  
  <p>Here is my <code>model class</code> .</p>
  
  <pre><code>public class ImageClass {
  
  
      private Bitmap bitmap;
      public ImageClass(Bitmap bitmap) {
          this.bitmap = bitmap;
      }
  
      public Bitmap getBitmap() {
          return bitmap;
      }
  
      public void setBitmap(Bitmap bitmap) {
          this.bitmap = bitmap;
      }
  
  }
  </code></pre>
  
  <p>My <code>adapter</code> </p>
  
  <pre><code>  ...
  @Override
  public myViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      View row = LayoutInflater.from(parent.getContext()).inflate(R.layout.image_layout,parent,false);
      myViewHolder myViewHolder = new myViewHolder(row);
      return myViewHolder;
  }
  
  
        @Override
  public void onBindViewHolder(myViewHolder holder, int position) {
      ImageClass imageClass = myClassImageList.get(position);
          holder.imageView.setImageBitmap(imageClass.getBitmap());
  }
   ...
  </code></pre>
  
  <p>my <code>Main Activity</code></p>
  
  <pre><code> imageNames.add(0,"ha.jpg");
      imageNames.add(1,"ahmed.jpg");
  
  getData();
      adapter = new ImageRecyclerAdapter(imageClassList);
      recyclerView.setAdapter(adapter);
    }
     public void getData() {
      for(int i=0;i&lt;imageNames.size();i++) {
          StorageReference ref = storageReference.child("filee/"+imageNames.get(i));
          try {
              localFile = File.createTempFile("Images", "jpg");
          } catch(IOException e) {
          }
          ref.getFile(localFile).addOnSuccessListener(new OnSuccessListener&lt; FileDownloadTask.TaskSnapshot &gt;() {
              @Override
              public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {
                  bitmap = BitmapFactory.decodeFile(localFile.getAbsolutePath());
                  ImageClass imageClass = new ImageClass(bitmap);
                  imageClass.setBitmap(bitmap);
                  imageClassList.add( imageClass);
                  recyclerView.setLayoutManager(new LinearLayoutManager(MainActivity.this));
  
                  Toast.makeText(MainActivity.this, "Downloaded", Toast.LENGTH_SHORT).show();
  
              }
          }).addOnFailureListener(new OnFailureListener() {
              @Override
              public void onFailure(@NonNull Exception e) {
                  Toast.makeText(MainActivity.this, "NotDownloaded", Toast.LENGTH_SHORT).show(); 
              }
          });
      }
  }
  </code></pre>