thanks Ian that was my assumption too but it wasn'...
# android
a
thanks Ian that was my assumption too but it wasn't working as expected. I should say this was within a
when()
block, responding to the position of my ViewPagerAdapter. So it was like
Copy code
when(position) {
  0 -> { FragmentA() }
  1 -> { FragmentB() }
}