title: After delete item still exist in recycle view
body: <p>Is that means my i didnt refresh my adapter or what?      </p>
  
  <p>@Override
      public void onDeleteClick(int position)
      {
          FoodInfo selectedItem;</p>
  
  <pre><code>    if(!searchView.getQuery().toString().isEmpty())
      {
          selectedItem = newlist.get(position);
      }
      else
      {
          selectedItem = mfoodinfo.get(position);
      }
  
      final String selectedKey = selectedItem.getFoodname();
  
      StorageReference imageRef = firebaseStorage.getReferenceFromUrl(selectedItem.getImageUrl());
      imageRef.delete().addOnSuccessListener(new OnSuccessListener&lt;Void&gt;() {
          @Override
          public void onSuccess(Void aVoid) {
              databaseReference.child(selectedKey).removeValue();
              foodAdapter.notifyDataSetChanged();
              Toast.makeText(Recycleview.this, "Item deleted", Toast.LENGTH_SHORT).show();
  
          }
      });
  
  }
  </code></pre>
  
  <p>Food Adapter</p>
  
  <pre><code>@Override
  public int getItemCount() {
      return mfoodinfo.size();
  }
  
  public void setFilter(List&lt;FoodInfo&gt; newlist) {
  
      mfoodinfo = new ArrayList&lt;&gt;();
      mfoodinfo.addAll(newlist);
      notifyDataSetChanged();
  }
  
       @Override
      public void onClick(View v) {
          if (mListener != null) {
              int position = getAdapterPosition();
              if (position != RecyclerView.NO_POSITION) {
                  mListener.onItemClick(position);
              }
          }
      }
  
      @Override
      public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {
          menu.setHeaderTitle("Select Action");
          MenuItem delete = menu.add(Menu.NONE, 1, 1, "Delete");
          MenuItem update = menu.add(Menu.NONE, 2, 2, "Update ");
  
  
          update.setOnMenuItemClickListener(this);
          delete.setOnMenuItemClickListener(this);
      }
      @Override
      public boolean onMenuItemClick(MenuItem item) {
          if (mListener != null) {
              int position = getAdapterPosition();
              if (position != RecyclerView.NO_POSITION) {
  
                  switch (item.getItemId()) {
  
                      case 1:
                          mListener.onDeleteClick(position);
                          return true;
                      case 2:
                          mListener.UpdateFood(position);
                          return true;
  
                  }
              }
          }
          return false;
      }
  
  }
  
  public interface OnItemClickListener {
      void onItemClick(int position);
  
      void onDeleteClick(int position);
  
      void UpdateFood(int position);
  
  
  }
  
  public void setOnItemClickListener(OnItemClickListener listener) {
      mListener = listener;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>that is my delete method after I delete the item it still exists in my recycle view bt gone in firebase</p>
  
  <p>I have to leave this page and access again then it only shows exactly the same item with firebase</p>
  
  <p>Anyone help?</p>