I have 2 recyclerview. I want to add different types of book images to different lines in the horizontal plane. But when I add a book, it is added to both of recyclerview. Where's my mistake?
for loop:
for (DataSnapshot ds : dataSnapshot.getChildren()) {
                        HashMap<String, String> hashMap = (HashMap<String, String>) ds.getValue();
                        mBaslik.add(hashMap.get("baslik"));
                        mFotoUrl.add(hashMap.get("downloadurl"));
                        if(hashMap.get("baslik").equals("Roman")){
                            initRecyclerView();
                        }
                        else if(hashMap.get("baslik").equals("Hikaye")){
                            initRecyclerView2();
                        }
                    }
 
     
    