fix(StatusDisplayItem): check if headerlist is empty
This commit is contained in:
parent
0788b03828
commit
e68e870a7c
1 changed files with 4 additions and 2 deletions
|
@ -796,10 +796,12 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
|
|||
if(s.textExpandable!=expandable && list!=null) {
|
||||
s.textExpandable=expandable;
|
||||
List<HeaderStatusDisplayItem.Holder> headers=findAllHoldersOfType(holder.getItemID(), HeaderStatusDisplayItem.Holder.class);
|
||||
if(headers!=null && !headers.isEmpty()){
|
||||
HeaderStatusDisplayItem.Holder header=headers.size() > 1 && isForQuote ? headers.get(1) : headers.get(0);
|
||||
if(header!=null) header.bindCollapseButton();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onToggleExpanded(Status status, boolean isForQuote, String itemID) {
|
||||
status.textExpanded = !status.textExpanded;
|
||||
|
|
Loading…
Add table
Reference in a new issue