Skip to content

Instantly share code, notes, and snippets.

@arkivanov
Last active September 5, 2020 21:38
Show Gist options
  • Save arkivanov/b52302b095fa2d1c30c9b55ecca0d7e1 to your computer and use it in GitHub Desktop.
Save arkivanov/b52302b095fa2d1c30c9b55ecca0d7e1 to your computer and use it in GitHub Desktop.
The defective AndroidX FragmentFactory - UserFragment1
class UserFragment : Fragment() {
private lateinit var userId: String
private lateinit var userRepository: UserRepository
}
interface UserRepository {
fun loadUser(id: String): User
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment