mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
be a bit more carful with wrong positions
This commit is contained in:
@@ -655,10 +655,10 @@ public class ConversationFragment extends Fragment
|
||||
LinearLayoutManager layoutManager = (LinearLayoutManager)list.getLayoutManager();
|
||||
|
||||
int firstPos = layoutManager.findFirstVisibleItemPosition();
|
||||
if(firstPos==RecyclerView.NO_POSITION) {
|
||||
int lastPos = layoutManager.findLastVisibleItemPosition();
|
||||
if(firstPos==RecyclerView.NO_POSITION || lastPos==RecyclerView.NO_POSITION) {
|
||||
return;
|
||||
}
|
||||
int lastPos = layoutManager.findLastVisibleItemPosition();
|
||||
|
||||
int[] ids = new int[lastPos - firstPos + 1];
|
||||
int index = 0;
|
||||
|
||||
Reference in New Issue
Block a user