[Solved] If there is data in query or Path it show data in FirestoreRecyclerAdapter. but when there is no data at that path


I got Answer

  @Override
                    public void onDataChanged() {
                        if(dialog != null && dialog.isShowing()){
                            dialog.dismiss();

                        }

                        if(getItemCount() == 0){

                            remoteListRV.setVisibility(View.GONE);
                            msgTv.setVisibility(View.VISIBLE);
                            msgTv.setText("No "+ appType +" Available  !!!!");


                        }else {

                            remoteListRV.setVisibility(View.VISIBLE);
                            msgTv.setVisibility(View.GONE);

                        }

                    }

0

solved If there is data in query or Path it show data in FirestoreRecyclerAdapter. but when there is no data at that path