Skip to content

Instantly share code, notes, and snippets.

@fo2rist
Last active March 23, 2020 22:17
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/76e1857d274266ad626dda5610566133 to your computer and use it in GitHub Desktop.
Save fo2rist/76e1857d274266ad626dda5610566133 to your computer and use it in GitHub Desktop.
Java To Kotlin Conversion. Step 4. Interop Before
class NonLazyDemoAdapter internal constructor(fm: FragmentManager) : FragmentStatePagerAdapter(fm) {
internal class FragmentBundle(
@field:SerializedName("id") var id: Int,
@field:SerializedName("name") var name: String
) : Serializable
companion object {
@JvmStatic
fun createAdapter(fm: FragmentManager): NonLazyDemoAdapter {
...
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment