Skip to content

Instantly share code, notes, and snippets.

@fo2rist
Created March 23, 2020 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fo2rist/b4e08fda98a0cc86d72eac3287fc1fb3 to your computer and use it in GitHub Desktop.
Save fo2rist/b4e08fda98a0cc86d72eac3287fc1fb3 to your computer and use it in GitHub Desktop.
Java To Kotlin Conversion. Step 3. Conversion After
class NonLazyDemoAdapter internal constructor(fm: FragmentManager) : FragmentStatePagerAdapter(fm) {
private val pages = arrayOf(SomePage.FIRST, SomePage.SECOND)
override fun getItem(position: Int): Fragment {
return cachedFragments[position]!!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment