Fix crashes
This commit is contained in:
parent
3d7f2c154a
commit
14656472a9
|
@ -216,7 +216,8 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
|
|||
view.setScaleX(1f);
|
||||
view.setScaleY(1f);
|
||||
transitioningHolder.itemView.setElevation(0f);
|
||||
list.setClipChildren(true);
|
||||
if(list!=null)
|
||||
list.setClipChildren(true);
|
||||
transitioningHolder=null;
|
||||
}
|
||||
|
||||
|
@ -596,6 +597,8 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
|
|||
|
||||
@Override
|
||||
public ImageLoaderRequest getImageRequest(int position, int image){
|
||||
if(position>=displayItems.size()) // TODO fix this in the image loader, these crashes are driving me crazy
|
||||
return null;
|
||||
return displayItems.get(position).getImageRequest(image);
|
||||
}
|
||||
|
||||
|
|
|
@ -107,6 +107,8 @@ public class DiscoverAccountsFragment extends BaseRecyclerFragment<DiscoverAccou
|
|||
public void onSuccess(List<Relationship> result){
|
||||
relationshipsRequest=null;
|
||||
relationships=result.stream().collect(Collectors.toMap(rel->rel.id, Function.identity()));
|
||||
if(list==null)
|
||||
return;
|
||||
for(int i=0;i<list.getChildCount();i++){
|
||||
RecyclerView.ViewHolder holder=list.getChildViewHolder(list.getChildAt(i));
|
||||
if(holder instanceof AccountViewHolder)
|
||||
|
|
|
@ -493,7 +493,7 @@ public class InstanceCatalogFragment extends BaseRecyclerFragment<CatalogInstanc
|
|||
|
||||
@Override
|
||||
public int getItemViewType(int position){
|
||||
return 1;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue