J6ey
07/18/2023, 6:05 AMval index = fragmentList.indexOf(fragment)
fragmentList[index] = NoDataFragment.newInstance()
am I missing something?Mihai Potra
07/18/2023, 6:34 AMfragmentList.replace(fragment, NoDataFragment.newInstance())
. Something along the line of https://gist.github.com/mpotra/0dddfda9111408bc21041deaccc3c564Mihai Potra
07/18/2023, 6:40 AM.replaceAll
but that iterates over the entire array