{"action":"created","issue":{"url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/2302","repository_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper","labels_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/2302/labels{/name}","comments_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/2302/comments","events_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/2302/events","html_url":"https://github.com/CymChad/BaseRecyclerViewAdapterHelper/issues/2302","id":333210706,"node_id":"MDU6SXNzdWUzMzMyMTA3MDY=","number":2302,"title":"Problems with setVisible () and OnItemClickListener","user":{"login":"bsodKeks","id":39200130,"node_id":"MDQ6VXNlcjM5MjAwMTMw","avatar_url":"https://avatars2.githubusercontent.com/u/39200130?v=4","gravatar_id":"","url":"https://api.github.com/users/bsodKeks","html_url":"https://github.com/bsodKeks","followers_url":"https://api.github.com/users/bsodKeks/followers","following_url":"https://api.github.com/users/bsodKeks/following{/other_user}","gists_url":"https://api.github.com/users/bsodKeks/gists{/gist_id}","starred_url":"https://api.github.com/users/bsodKeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsodKeks/subscriptions","organizations_url":"https://api.github.com/users/bsodKeks/orgs","repos_url":"https://api.github.com/users/bsodKeks/repos","events_url":"https://api.github.com/users/bsodKeks/events{/privacy}","received_events_url":"https://api.github.com/users/bsodKeks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-18T10:18:13Z","updated_at":"2018-06-18T10:46:12Z","closed_at":"2018-06-18T10:46:12Z","author_association":"NONE","body":"video: https://www.youtube.com/watch?v=Afh5pmnzYoM&feature=youtu.be \r\n\r\n`  \r\n Integer lastPos = -1;\r\nmAdressAdapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {\r\n                        @Override\r\n                        public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {\r\n\r\n                            BaseViewHolder viewHolder = (BaseViewHolder) mRVTAdr.findViewHolderForLayoutPosition(position);\r\n                            View mInfView = viewHolder.getView( R.id.cardAdressInf);\r\n\r\n                            if (lastPos!=-1 & lastPos!=position){\r\n                                View mParentView = mRVTAdr.getChildAt(lastPos);\r\n                                View mLastInf = mParentView.findViewById(R.id.cardAdressInf);\r\n                                    mLastInf.setVisibility(View.GONE);\r\n                            }\r\n                            switch (view.getId()) {\r\n                                case R.id.llAdr:\r\n                                    if (mInfView.getVisibility()==View.GONE){\r\n                                        mInfView.setVisibility(View.VISIBLE);\r\n                                    } else {\r\n                                        mInfView.setVisibility(View.GONE);\r\n                                    }\r\n                                    break;\r\n                                case R.id.cardAdressInf:\r\n                                    onClickToRepPhoto(view);\r\n                                    break;\r\n                                case R.id.ibAddPhoto:\r\n                                    onClickToRepPhoto(view);\r\n                                    break;\r\n                            }\r\n                            lastPos = position;\r\n                        }\r\n                    });`\r\n\r\nHow can I fix this?"},"comment":{"url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/comments/398014814","html_url":"https://github.com/CymChad/BaseRecyclerViewAdapterHelper/issues/2302#issuecomment-398014814","issue_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/2302","id":398014814,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODAxNDgxNA==","user":{"login":"bsodKeks","id":39200130,"node_id":"MDQ6VXNlcjM5MjAwMTMw","avatar_url":"https://avatars2.githubusercontent.com/u/39200130?v=4","gravatar_id":"","url":"https://api.github.com/users/bsodKeks","html_url":"https://github.com/bsodKeks","followers_url":"https://api.github.com/users/bsodKeks/followers","following_url":"https://api.github.com/users/bsodKeks/following{/other_user}","gists_url":"https://api.github.com/users/bsodKeks/gists{/gist_id}","starred_url":"https://api.github.com/users/bsodKeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsodKeks/subscriptions","organizations_url":"https://api.github.com/users/bsodKeks/orgs","repos_url":"https://api.github.com/users/bsodKeks/repos","events_url":"https://api.github.com/users/bsodKeks/events{/privacy}","received_events_url":"https://api.github.com/users/bsodKeks/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T10:46:12Z","updated_at":"2018-06-18T10:46:12Z","author_association":"NONE","body":"in adapter\r\n`helper.setGone(R.id.cardAdressInf, false);`"}}
{"actor":{"display_login":"bsodKeks"}}