{"action":"created","issue":{"url":"https://api.github.com/repos/Kenber/DoubleStickyHeadersList/issues/6","repository_url":"https://api.github.com/repos/Kenber/DoubleStickyHeadersList","labels_url":"https://api.github.com/repos/Kenber/DoubleStickyHeadersList/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Kenber/DoubleStickyHeadersList/issues/6/comments","events_url":"https://api.github.com/repos/Kenber/DoubleStickyHeadersList/issues/6/events","html_url":"https://github.com/Kenber/DoubleStickyHeadersList/issues/6","id":197283111,"number":6,"title":"Crash with listview headers","user":{"login":"Maxxan","id":4164390,"avatar_url":"https://avatars.githubusercontent.com/u/4164390?v=3","gravatar_id":"","url":"https://api.github.com/users/Maxxan","html_url":"https://github.com/Maxxan","followers_url":"https://api.github.com/users/Maxxan/followers","following_url":"https://api.github.com/users/Maxxan/following{/other_user}","gists_url":"https://api.github.com/users/Maxxan/gists{/gist_id}","starred_url":"https://api.github.com/users/Maxxan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maxxan/subscriptions","organizations_url":"https://api.github.com/users/Maxxan/orgs","repos_url":"https://api.github.com/users/Maxxan/repos","events_url":"https://api.github.com/users/Maxxan/events{/privacy}","received_events_url":"https://api.github.com/users/Maxxan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-22T22:51:55Z","updated_at":"2016-12-23T09:50:45Z","closed_at":null,"body":"If the listview has a header, then it crashes as soon as you scroll.\r\nMaybe could be solved by something like\r\n```\r\npublic int getHeaderLevel(int position) {\r\n        ListAdapter adapter = getAdapter();\r\n        if (adapter instanceof HeaderViewListAdapter) {\r\n            adapter = ((HeaderViewListAdapter) adapter).getWrappedAdapter();\r\n        }\r\n        return ((DoubleStickHeadersListAdapter) adapter).getHeaderLevel(position);\r\n    }\r\n```\r\nin DoubleStickHeadersListView.\r\n[DoubleStickyHeadersList-problem_header.zip](https://github.com/Kenber/DoubleStickyHeadersList/files/670005/DoubleStickyHeadersList-problem_header.zip)\r\n\r\n\r\nIn attached example you can also see a problem where a header 1 continues to exist at the bottom where there shouldn't be any.\r\n"},"comment":{"url":"https://api.github.com/repos/Kenber/DoubleStickyHeadersList/issues/comments/268965223","html_url":"https://github.com/Kenber/DoubleStickyHeadersList/issues/6#issuecomment-268965223","issue_url":"https://api.github.com/repos/Kenber/DoubleStickyHeadersList/issues/6","id":268965223,"user":{"login":"Kenber","id":4409224,"avatar_url":"https://avatars.githubusercontent.com/u/4409224?v=3","gravatar_id":"","url":"https://api.github.com/users/Kenber","html_url":"https://github.com/Kenber","followers_url":"https://api.github.com/users/Kenber/followers","following_url":"https://api.github.com/users/Kenber/following{/other_user}","gists_url":"https://api.github.com/users/Kenber/gists{/gist_id}","starred_url":"https://api.github.com/users/Kenber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kenber/subscriptions","organizations_url":"https://api.github.com/users/Kenber/orgs","repos_url":"https://api.github.com/users/Kenber/repos","events_url":"https://api.github.com/users/Kenber/events{/privacy}","received_events_url":"https://api.github.com/users/Kenber/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T09:50:45Z","updated_at":"2016-12-23T09:50:45Z","body":"I 'll check it."}}
{"actor":{"display_login":"Kenber"}}