{"action":"created","issue":{"url":"https://api.github.com/repos/excilys/androidannotations/issues/1302","labels_url":"https://api.github.com/repos/excilys/androidannotations/issues/1302/labels{/name}","comments_url":"https://api.github.com/repos/excilys/androidannotations/issues/1302/comments","events_url":"https://api.github.com/repos/excilys/androidannotations/issues/1302/events","html_url":"https://github.com/excilys/androidannotations/issues/1302","id":53208073,"number":1302,"title":"@FragmentById does not work on child of fragment.","user":{"login":"wintersandroid","id":2851384,"avatar_url":"https://avatars.githubusercontent.com/u/2851384?v=3","gravatar_id":"","url":"https://api.github.com/users/wintersandroid","html_url":"https://github.com/wintersandroid","followers_url":"https://api.github.com/users/wintersandroid/followers","following_url":"https://api.github.com/users/wintersandroid/following{/other_user}","gists_url":"https://api.github.com/users/wintersandroid/gists{/gist_id}","starred_url":"https://api.github.com/users/wintersandroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wintersandroid/subscriptions","organizations_url":"https://api.github.com/users/wintersandroid/orgs","repos_url":"https://api.github.com/users/wintersandroid/repos","events_url":"https://api.github.com/users/wintersandroid/events{/privacy}","received_events_url":"https://api.github.com/users/wintersandroid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/excilys/androidannotations/labels/Enhancement","name":"Enhancement","color":"0b02e1"}],"state":"open","locked":false,"assignee":{"login":"WonderCsabo","id":480485,"avatar_url":"https://avatars.githubusercontent.com/u/480485?v=3","gravatar_id":"","url":"https://api.github.com/users/WonderCsabo","html_url":"https://github.com/WonderCsabo","followers_url":"https://api.github.com/users/WonderCsabo/followers","following_url":"https://api.github.com/users/WonderCsabo/following{/other_user}","gists_url":"https://api.github.com/users/WonderCsabo/gists{/gist_id}","starred_url":"https://api.github.com/users/WonderCsabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WonderCsabo/subscriptions","organizations_url":"https://api.github.com/users/WonderCsabo/orgs","repos_url":"https://api.github.com/users/WonderCsabo/repos","events_url":"https://api.github.com/users/WonderCsabo/events{/privacy}","received_events_url":"https://api.github.com/users/WonderCsabo/received_events","type":"User","site_admin":false},"milestone":null,"comments":13,"created_at":"2014-12-31T23:24:47Z","updated_at":"2015-05-31T15:36:03Z","closed_at":null,"body":"In API 21+ and possibly earlier, i have only seen this when using api 21. The call getFragmentManager().getFragmentById wont get fragments that are children of a fragment, thus when using FragmentById as a child fragment of a EFragment you will get null.\r\n\r\nwhen finding fragment that is a child of a fragment, getChildFragmentManager().findFragmentById()....\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/excilys/androidannotations/issues/comments/107206758","html_url":"https://github.com/excilys/androidannotations/issues/1302#issuecomment-107206758","issue_url":"https://api.github.com/repos/excilys/androidannotations/issues/1302","id":107206758,"user":{"login":"WonderCsabo","id":480485,"avatar_url":"https://avatars.githubusercontent.com/u/480485?v=3","gravatar_id":"","url":"https://api.github.com/users/WonderCsabo","html_url":"https://github.com/WonderCsabo","followers_url":"https://api.github.com/users/WonderCsabo/followers","following_url":"https://api.github.com/users/WonderCsabo/following{/other_user}","gists_url":"https://api.github.com/users/WonderCsabo/gists{/gist_id}","starred_url":"https://api.github.com/users/WonderCsabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WonderCsabo/subscriptions","organizations_url":"https://api.github.com/users/WonderCsabo/orgs","repos_url":"https://api.github.com/users/WonderCsabo/repos","events_url":"https://api.github.com/users/WonderCsabo/events{/privacy}","received_events_url":"https://api.github.com/users/WonderCsabo/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T15:36:03Z","updated_at":"2015-05-31T15:36:03Z","body":"I started to implement this feature, and this came into my mind: does this feature actually make sense?\r\n\r\nI mean if you want to use `getChildFragmentManager()`, then you obviously used that to add the `Fragment`s. But when you added the `Fragment`s for example in `onCreate()`, then you already had the chance to store it in fields, so it is totally unnecessary to make AA inject them later. @wintersandroid what is the use case here? :confused: "}}