Skip to content

Commit

Permalink
fix(android): fix global header/footer title in ListView
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Dec 21, 2024
1 parent 6352c27 commit fc33a34
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ private void setHeaderFooter(TiViewProxy listViewProxy,
// Handle header title.
this.headerTitle.setText(properties.getString(TiC.PROPERTY_HEADER_TITLE));
this.headerTitle.setVisibility(View.VISIBLE);

if (this.content.getChildCount() == 0) {
this.container.addView(new View(context));
}
} else if (properties.containsKeyAndNotNull(TiC.PROPERTY_HEADER_VIEW)) {

// Handle header view.
Expand Down Expand Up @@ -373,7 +375,9 @@ private void setHeaderFooter(TiViewProxy listViewProxy,
// Handle footer title.
this.footerTitle.setText(properties.getString(TiC.PROPERTY_FOOTER_TITLE));
this.footerTitle.setVisibility(View.VISIBLE);

if (this.content.getChildCount() == 0) {
this.container.addView(new View(context));
}
} else if (properties.containsKeyAndNotNull(TiC.PROPERTY_FOOTER_VIEW)) {

// Handle footer view.
Expand Down

0 comments on commit fc33a34

Please sign in to comment.