{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/580","repository_url":"https://api.github.com/repos/firebase/FirebaseUI-Android","labels_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/580/labels{/name}","comments_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/580/comments","events_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/580/events","html_url":"https://github.com/firebase/FirebaseUI-Android/issues/580","id":205887182,"number":580,"title":"Modular FirebaseRecyclerAdapter","user":{"login":"Brianvdb","id":7311229,"avatar_url":"https://avatars.githubusercontent.com/u/7311229?v=3","gravatar_id":"","url":"https://api.github.com/users/Brianvdb","html_url":"https://github.com/Brianvdb","followers_url":"https://api.github.com/users/Brianvdb/followers","following_url":"https://api.github.com/users/Brianvdb/following{/other_user}","gists_url":"https://api.github.com/users/Brianvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/Brianvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brianvdb/subscriptions","organizations_url":"https://api.github.com/users/Brianvdb/orgs","repos_url":"https://api.github.com/users/Brianvdb/repos","events_url":"https://api.github.com/users/Brianvdb/events{/privacy}","received_events_url":"https://api.github.com/users/Brianvdb/received_events","type":"User","site_admin":false},"labels":[{"id":425218975,"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/labels/feature:database","name":"feature:database","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-07T13:29:51Z","updated_at":"2017-02-07T17:12:57Z","closed_at":null,"body":"I am using my own class which extends the `FirebaseReyclerAdapter` to make it more modular. \r\n\r\nYet I come accross one issue. I am overriding the `parseSnapshot(DataSnapshot dataSnapshot)` method to do custom parsing but when that method gets called I do not know what position the DataSnapshot belongs to. I also cannot get the `mSnapshots` instance variable because it is private. Because of that it is also not possible to override the `getItem(int position)` method. I need the position / viewtype for custom parsing.\r\n\r\nMy suggestion is to add a position parameter to the `parseSnapshot` method. Or is there an other way to get the position?"},"comment":{"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/comments/278069518","html_url":"https://github.com/firebase/FirebaseUI-Android/issues/580#issuecomment-278069518","issue_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/580","id":278069518,"user":{"login":"SUPERCILEX","id":9490724,"avatar_url":"https://avatars.githubusercontent.com/u/9490724?v=3","gravatar_id":"","url":"https://api.github.com/users/SUPERCILEX","html_url":"https://github.com/SUPERCILEX","followers_url":"https://api.github.com/users/SUPERCILEX/followers","following_url":"https://api.github.com/users/SUPERCILEX/following{/other_user}","gists_url":"https://api.github.com/users/SUPERCILEX/gists{/gist_id}","starred_url":"https://api.github.com/users/SUPERCILEX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUPERCILEX/subscriptions","organizations_url":"https://api.github.com/users/SUPERCILEX/orgs","repos_url":"https://api.github.com/users/SUPERCILEX/repos","events_url":"https://api.github.com/users/SUPERCILEX/events{/privacy}","received_events_url":"https://api.github.com/users/SUPERCILEX/received_events","type":"User","site_admin":false},"created_at":"2017-02-07T17:12:57Z","updated_at":"2017-02-07T17:12:57Z","body":"@puf if #544 goes through, I'd rather not do that because it would make the `SnapshotParser` interface messy. (People will be able to do `mSnapshots.indexOf(snapshot)` because it's just a list.)"}}
{"actor":{"display_login":"SUPERCILEX"}}