I have an activity that contains several fragments. in one of those fragments, there is a RecyclerView.
there is a second activity that starts from the RecyclerViewAdapter.
in the second activity, the user can change the recyclerview data and when the second activity finishes the recyclerview should reload to show those changes.
the problem is I cannot reload the whole fragment and I can't access the recyclerview from the first activity because it's in a fragment. I tried to use getView() to get the instance of fragment view to reload the recyclerview but the app crashed because of null object reference.
what is the best way to do this?