修复直播间长期不动会自动停止滚动的问题
This commit is contained in:
parent
dc529b6640
commit
bdc43baaa8
@ -64,7 +64,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
private LinearLayoutManager mLayoutManager;
|
||||
|
||||
private IMLoginModel model;
|
||||
private int mRecyclerViewScrolledDx, mRecyclerViewScrolledDy;
|
||||
private int mRecyclerViewScrolledDy;
|
||||
|
||||
private int mPosition;
|
||||
|
||||
@ -127,7 +127,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
@Override
|
||||
public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {
|
||||
super.onScrolled(recyclerView, dx, dy);
|
||||
mRecyclerViewScrolledDx = dx;
|
||||
if(isSlideToBottom(recyclerView))return;
|
||||
mRecyclerViewScrolledDy = dy;
|
||||
Log.i(TAG, "onScrolled: dx = " + dx + ", dy = " + dy);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user