Created
November 25, 2019 14:26
-
-
Save nongdenchet/f99325132ee73159cebb48c52661e8ea to your computer and use it in GitHub Desktop.
MockFragmentFactoryImpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MockFragmentFactoryImpl( | |
private val dependency: RemyndDetailsDependency | |
) : FragmentFactory() { | |
override fun instantiate(classLoader: ClassLoader, className: String): Fragment { | |
return when (loadFragmentClass(classLoader, className)) { | |
RemyndDetailsFragment::class.java -> RemyndDetailsFragment(dependency) | |
else -> super.instantiate(classLoader, className) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment