Crash fix

This commit is contained in:
Grishka 2022-05-05 06:05:50 +03:00
parent 1a0435d32c
commit b4219bcaa0
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public class HomeTimelineFragment extends StatusListFragment{
return; return;
Status last=result.get(result.size()-1); Status last=result.get(result.size()-1);
List<Status> toAdd; List<Status> toAdd;
if(last.id.equals(data.get(0).id)){ // This part intersects with the existing one if(!data.isEmpty() && last.id.equals(data.get(0).id)){ // This part intersects with the existing one
toAdd=result.subList(0, result.size()-1); // Remove the already known last post toAdd=result.subList(0, result.size()-1); // Remove the already known last post
}else{ }else{
result.get(result.size()-1).hasGapAfter=true; result.get(result.size()-1).hasGapAfter=true;