{"action":"created","issue":{"url":"https://api.github.com/repos/zaihuishou/ExpandableRecyclerview/issues/20","repository_url":"https://api.github.com/repos/zaihuishou/ExpandableRecyclerview","labels_url":"https://api.github.com/repos/zaihuishou/ExpandableRecyclerview/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/zaihuishou/ExpandableRecyclerview/issues/20/comments","events_url":"https://api.github.com/repos/zaihuishou/ExpandableRecyclerview/issues/20/events","html_url":"https://github.com/zaihuishou/ExpandableRecyclerview/issues/20","id":193664610,"number":20,"title":"展开关闭有问题","user":{"login":"rebadi","id":5978952,"avatar_url":"https://avatars.githubusercontent.com/u/5978952?v=3","gravatar_id":"","url":"https://api.github.com/users/rebadi","html_url":"https://github.com/rebadi","followers_url":"https://api.github.com/users/rebadi/followers","following_url":"https://api.github.com/users/rebadi/following{/other_user}","gists_url":"https://api.github.com/users/rebadi/gists{/gist_id}","starred_url":"https://api.github.com/users/rebadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebadi/subscriptions","organizations_url":"https://api.github.com/users/rebadi/orgs","repos_url":"https://api.github.com/users/rebadi/repos","events_url":"https://api.github.com/users/rebadi/events{/privacy}","received_events_url":"https://api.github.com/users/rebadi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-06T02:11:21Z","updated_at":"2016-12-08T08:06:33Z","closed_at":null,"body":"   @Override\r\n    public void onParentListItemCollapsed(int position) {\r\n        Object o = mDataList.get(position);\r\n        if (o instanceof ExpandableListItem) {\r\n            collapseParentListItem((ExpandableListItem) o, position, true);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * expand parent item\r\n     *\r\n     * @param position The index of the item in the list being expanded\r\n     */\r\n    @Override\r\n    public void onParentListItemExpanded(int position) {\r\n        try {\r\n            Object o = mDataList.get(position);\r\n            if (o instanceof ExpandableListItem) {\r\n                expandParentListItem((ExpandableListItem) o, position, true, false);\r\n            }\r\n        } catch (IndexOutOfBoundsException e) {\r\n        }\r\n    }\r\n\r\n展开有几率会展不开要点其他item在点出问题展不开的这个item才能恢复\r\n关闭有几率会导致程序崩溃 \r\n\r\n\r\n怎么解决呢"},"comment":{"url":"https://api.github.com/repos/zaihuishou/ExpandableRecyclerview/issues/comments/265678246","html_url":"https://github.com/zaihuishou/ExpandableRecyclerview/issues/20#issuecomment-265678246","issue_url":"https://api.github.com/repos/zaihuishou/ExpandableRecyclerview/issues/20","id":265678246,"user":{"login":"rebadi","id":5978952,"avatar_url":"https://avatars.githubusercontent.com/u/5978952?v=3","gravatar_id":"","url":"https://api.github.com/users/rebadi","html_url":"https://github.com/rebadi","followers_url":"https://api.github.com/users/rebadi/followers","following_url":"https://api.github.com/users/rebadi/following{/other_user}","gists_url":"https://api.github.com/users/rebadi/gists{/gist_id}","starred_url":"https://api.github.com/users/rebadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebadi/subscriptions","organizations_url":"https://api.github.com/users/rebadi/orgs","repos_url":"https://api.github.com/users/rebadi/repos","events_url":"https://api.github.com/users/rebadi/events{/privacy}","received_events_url":"https://api.github.com/users/rebadi/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T08:06:33Z","updated_at":"2016-12-08T08:06:33Z","body":"就是点击展开有几率，子项展不开\r\n\r\n/**\r\n * expand parent item\r\n *\r\n * @param position The index of the item in the list being expanded\r\n */\r\n@Override\r\npublic void onParentListItemExpanded(int position) {\r\n    try {\r\n        Object o = mDataList.get(position);\r\n        if (o instanceof ExpandableListItem) {\r\n            expandParentListItem((ExpandableListItem) o, position, true, false);\r\n        }\r\n    } catch (IndexOutOfBoundsException e) {\r\n    }\r\n}\r\n\r\n应该是这里出的问题 IndexOutOfBoundsException  \r\n关闭 子项的时候也有几率会出问题，因为onParentListItemCollapsed这个方法里没有try catch 会直接崩溃掉\r\n"}}
{"actor":{"display_login":"rebadi"}}