-
-
Save KaustubhPatange/4b8909c43d6a5d438e0513c717e6da3a to your computer and use it in GitHub Desktop.
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
// in :home module | |
@Module | |
@InstallIn(FragmentComponent::class) | |
class HomeDependencyModule { | |
... | |
@Provides @HomeQualifier | |
fun homeFragment(fragment: Fragment) : HomeFragment { | |
return fragment.requireActivity().supportFragmentManager.fragments.find { it is HomeFragment } as HomeFragment | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment