Skip to content

Instantly share code, notes, and snippets.

@vestrel00
Created July 27, 2017 12:17
Show Gist options
  • Save vestrel00/4f3b72e307f34b48d0986c2122b8187d to your computer and use it in GitHub Desktop.
Save vestrel00/4f3b72e307f34b48d0986c2122b8187d to your computer and use it in GitHub Desktop.
A: 8 - ui/example_3/child_fragment/Example3ChildFragment.java
public final class Example3ChildFragment extends BaseFragment implements View.OnClickListener {
...
@Inject
PerChildFragmentUtil perChildFragmentUtil;
...
private void onDoSomethingClicked() {
String something = singletonUtil.doSomething();
something += "\n" + perActivityUtil.doSomething();
something += "\n" + perFragmentUtil.doSomething();
something += "\n" + perChildFragmentUtil.doSomething();
showSomething(something);
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment