Created
July 26, 2017 15:27
-
-
Save vestrel00/d16ed0a8861a5743450519630a966064 to your computer and use it in GitHub Desktop.
A: 3 - ui/common/BaseFragmentModule.java
This file contains hidden or 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
@Module | |
public abstract class BaseFragmentModule { | |
public static final String FRAGMENT = "BaseFragmentModule.fragment"; | |
static final String CHILD_FRAGMENT_MANAGER = "BaseFragmentModule.childFragmentManager"; | |
@Provides | |
@Named(CHILD_FRAGMENT_MANAGER) | |
@PerFragment | |
static FragmentManager childFragmentManager(@Named(FRAGMENT) Fragment fragment) { | |
return fragment.getChildFragmentManager(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment