Put the lines in the correct order for this code to work.
Child Fragments and ViewPager2 with Fragments
Correct line order
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
1 -> SecondFragment()
}
}
0 -> FirstFragment()
override fun createFragment(position: Int): Fragment {
return when (position) {
else -> throw AssertionError()
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.