{"action":"closed","issue":{"url":"https://api.github.com/repos/talenguyen/PrettyBundle/issues/7","labels_url":"https://api.github.com/repos/talenguyen/PrettyBundle/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/talenguyen/PrettyBundle/issues/7/comments","events_url":"https://api.github.com/repos/talenguyen/PrettyBundle/issues/7/events","html_url":"https://github.com/talenguyen/PrettyBundle/issues/7","id":59048076,"number":7,"title":"Support Fragment","user":{"login":"talenguyen","id":1658142,"avatar_url":"https://avatars.githubusercontent.com/u/1658142?v=3","gravatar_id":"","url":"https://api.github.com/users/talenguyen","html_url":"https://github.com/talenguyen","followers_url":"https://api.github.com/users/talenguyen/followers","following_url":"https://api.github.com/users/talenguyen/following{/other_user}","gists_url":"https://api.github.com/users/talenguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/talenguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talenguyen/subscriptions","organizations_url":"https://api.github.com/users/talenguyen/orgs","repos_url":"https://api.github.com/users/talenguyen/repos","events_url":"https://api.github.com/users/talenguyen/events{/privacy}","received_events_url":"https://api.github.com/users/talenguyen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-26T10:00:48Z","updated_at":"2015-02-27T17:35:37Z","closed_at":"2015-02-27T17:35:37Z","body":"## We now supported for Activity. But, we want to support for Fragment also. We will to support to inject extras for Fragment this way.\r\n\r\n### Fragment\r\nInject extras in the TargetFragment. \r\n```java\r\n@Extra String name;\r\n@Extra int age;\r\n\r\n@Override public void onCreate(Bundle savedInstanceState) {\r\n    super.onCreate(savedInstanceState);\r\n    PrettyBundle.inject(this); // call to inject the extra.\r\n}\r\n```\r\nSet extras for the TargetFragment.\r\n```java\r\nFragment targetFragment = Fragments.createTargetFragment(\"Giang\", 26);\r\n```\r\n"}}