{"action":"created","issue":{"url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/16","repository_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper","labels_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/16/comments","events_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/16/events","html_url":"https://github.com/CymChad/BaseRecyclerViewAdapterHelper/issues/16","id":154176661,"number":16,"title":"PullToRefreshUseActivity界面快速滑动很容易就挂掉了， 暂时还没发现具体原因","user":{"login":"HolenZhou","id":11223102,"avatar_url":"https://avatars.githubusercontent.com/u/11223102?v=3","gravatar_id":"","url":"https://api.github.com/users/HolenZhou","html_url":"https://github.com/HolenZhou","followers_url":"https://api.github.com/users/HolenZhou/followers","following_url":"https://api.github.com/users/HolenZhou/following{/other_user}","gists_url":"https://api.github.com/users/HolenZhou/gists{/gist_id}","starred_url":"https://api.github.com/users/HolenZhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HolenZhou/subscriptions","organizations_url":"https://api.github.com/users/HolenZhou/orgs","repos_url":"https://api.github.com/users/HolenZhou/repos","events_url":"https://api.github.com/users/HolenZhou/events{/privacy}","received_events_url":"https://api.github.com/users/HolenZhou/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-05-11T07:23:07Z","updated_at":"2016-05-30T08:05:21Z","closed_at":"2016-05-18T02:18:57Z","body":"java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{7b483c2 position=7 id=-1, oldPos=-1, pLpos:-1 no parent}\r\n                                                                                          at android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:4499)\r\n                                                                                          at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4630)\r\n                                                                                          at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4611)\r\n                                                                                          at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1988)\r\n                                                                                          at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1384)\r\n                                                                                          at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1347)\r\n                                                                                          at android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1175)\r\n                                                                                          at android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1031)\r\n                                                                                          at android.support.v7.widget.RecyclerView.scrollByInternal(RecyclerView.java:1504)\r\n                                                                                          at android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2461)\r\n                                                                                          at android.view.View.dispatchTouchEvent(View.java:8968)\r\n                                                                                          at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2698)\r\n                                                                                          at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2410)\r\n                                                                                          at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709)\r\n                                                                                          at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425)\r\n                                                                                          at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709)\r\n                                                                                          at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425)\r\n                                                                                          at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709)\r\n                                                                                          at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425)\r\n                                                                                          at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709)\r\n                                                                                          at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425)\r\n                                                                                          at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2709)\r\n                                                                                          at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2425)\r\n                                                                                          at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2559)\r\n                                                                                          at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1767)\r\n                                                                                          at android.app.Activity.dispatchTouchEvent(Activity.java:2866)\r\n                                                                                          at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2520)\r\n                                                                                          at android.view.View.dispatchPointerEvent(View.java:9173)\r\n                                                                                          at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4706)\r\n                                                                                          at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4544)\r\n                                                                                          at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4068)\r\n                                                                                          at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4121)\r\n                                                                                          at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4087)\r\n                                                                                          at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4201)\r\n                                                                                          at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4095)\r\n                                                                                          at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4258)\r\n                                                                                          at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4068)\r\n                                                                                          at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4121)\r\n                                                                                          at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4087)\r\n                                                                                          at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4095)\r\n                                                                                          at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4068)\r\n                                                                                          at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6565)\r\n                                                                                          at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6455)\r\n                                                                                          at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6426)\r\n                                                                                          at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6655)\r\n                                                                                          at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)\r\n                                                                                          at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)\r\n                                                                                      \tat android.view.InputEventReceiver.consumeB\r\n"},"comment":{"url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/comments/222436208","html_url":"https://github.com/CymChad/BaseRecyclerViewAdapterHelper/issues/16#issuecomment-222436208","issue_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/16","id":222436208,"user":{"login":"JeffrayZ","id":15990982,"avatar_url":"https://avatars.githubusercontent.com/u/15990982?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffrayZ","html_url":"https://github.com/JeffrayZ","followers_url":"https://api.github.com/users/JeffrayZ/followers","following_url":"https://api.github.com/users/JeffrayZ/following{/other_user}","gists_url":"https://api.github.com/users/JeffrayZ/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffrayZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffrayZ/subscriptions","organizations_url":"https://api.github.com/users/JeffrayZ/orgs","repos_url":"https://api.github.com/users/JeffrayZ/repos","events_url":"https://api.github.com/users/JeffrayZ/events{/privacy}","received_events_url":"https://api.github.com/users/JeffrayZ/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T08:05:21Z","updated_at":"2016-05-30T08:05:21Z","body":"我好像解决了这个问题，但是只能是保证不蹦，可能点击事件有问题，没具体看。用的是非常基本的办法，别笑话我！\r\n @Override\r\n    public void addFooterView(View footer) {\r\n        super.addFooterView(footer);\r\n        mFooterView = footer;\r\n    }\r\n\r\n    public View getFooterView(){\r\n        return mFooterView;\r\n    }\r\n\r\n    @Override\r\n    public void addHeaderView(View header) {\r\n        super.addHeaderView(header);\r\n        mHeaderView = header;\r\n    }\r\n\r\n    public View getmHeaderView(){\r\n        return mHeaderView;\r\n    }\r\n    @Override\r\n    public int getItemCount() {\r\n        if (getFooterView() != null && getFooterView() != null){\r\n            return mData.size() + 2;\r\n        } else if (getFooterView() != null || getmHeaderView() != null){\r\n            return mData.size() + 1;\r\n        } else {\r\n            return mData.size();\r\n        }\r\n    }\r\n\r\n这样好像是可以的。\r\n"}}
{"actor":{"display_login":"JeffrayZ"}}