{"action":"created","issue":{"url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/340","repository_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper","labels_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/340/labels{/name}","comments_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/340/comments","events_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/340/events","html_url":"https://github.com/CymChad/BaseRecyclerViewAdapterHelper/issues/340","id":177794480,"number":340,"title":"数据加载错位","user":{"login":"solomon2","id":1875409,"avatar_url":"https://avatars.githubusercontent.com/u/1875409?v=3","gravatar_id":"","url":"https://api.github.com/users/solomon2","html_url":"https://github.com/solomon2","followers_url":"https://api.github.com/users/solomon2/followers","following_url":"https://api.github.com/users/solomon2/following{/other_user}","gists_url":"https://api.github.com/users/solomon2/gists{/gist_id}","starred_url":"https://api.github.com/users/solomon2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solomon2/subscriptions","organizations_url":"https://api.github.com/users/solomon2/orgs","repos_url":"https://api.github.com/users/solomon2/repos","events_url":"https://api.github.com/users/solomon2/events{/privacy}","received_events_url":"https://api.github.com/users/solomon2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-09-19T14:07:44Z","updated_at":"2016-09-20T06:41:00Z","closed_at":null,"body":"BaseQuickAdapter  , \r\n```\r\n\r\n    public void onBindViewHolder(ViewHolder holder, int positions) {\r\n        int viewType = holder.getItemViewType();\r\n        switch(viewType) {\r\n        case 0:\r\n            this.convert((BaseViewHolder)holder, this.mData.get(holder.getLayoutPosition() - this.getHeaderLayoutCount()));\r\n```\r\n\r\n当传入的mData.get(positions)数据对象数值有null 时, holder.getLayoutPosition()  - this.getHeaderLayoutCount()  不能正确的取得当前item的positions值 . 而取得上一个正常的\r\n数据对象的positions值 ,于是返回的数据也是上一个对象的数据."},"comment":{"url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/comments/248216015","html_url":"https://github.com/CymChad/BaseRecyclerViewAdapterHelper/issues/340#issuecomment-248216015","issue_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/340","id":248216015,"user":{"login":"solomon2","id":1875409,"avatar_url":"https://avatars.githubusercontent.com/u/1875409?v=3","gravatar_id":"","url":"https://api.github.com/users/solomon2","html_url":"https://github.com/solomon2","followers_url":"https://api.github.com/users/solomon2/followers","following_url":"https://api.github.com/users/solomon2/following{/other_user}","gists_url":"https://api.github.com/users/solomon2/gists{/gist_id}","starred_url":"https://api.github.com/users/solomon2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solomon2/subscriptions","organizations_url":"https://api.github.com/users/solomon2/orgs","repos_url":"https://api.github.com/users/solomon2/repos","events_url":"https://api.github.com/users/solomon2/events{/privacy}","received_events_url":"https://api.github.com/users/solomon2/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T06:41:00Z","updated_at":"2016-09-20T06:41:00Z","body":"list size没有变化，\r\nnull的item在type  == TYPE_1的时候正常\r\n只有当前item   type  == TYPE_2 的时候异常, (但此时log打印错位显示的item type =TYPE_1 ) 当再次为TYPE_1的时候 又显示正常"}}
{"actor":{"display_login":"solomon2"}}