Android Navigation passing two different data from two different fragments to a third fragment-ThrowExceptions

Exception or error:

I have a specific problem with Android Navigation passing data.
I have a listfragment that navigates to the elementfragment, and a typefragment that navigates to the same elementfragments.
From the depart fragments (list, type) I need the id-s, because I have many lists and types and the elements depend on the departure data. List id is long, type id is int.
I suspect that the problem is that I have two parameters instead of one (because after the second all the two became wrong, but how I can fix it?
Thank you!
In the listadapter and the typeadapter I have this:

 holder.itemView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *