Skip to content

Commit

Permalink
Merge pull request #8941 from garymathews/TIMOB-24451_6_0_X
Browse files Browse the repository at this point in the history
[6_0_X][TIMOB-24451] Fix init of ListView in ListViewProxy
  • Loading branch information
Lokesh Choudhary committed Apr 7, 2017
2 parents cf78c0a + 7df0876 commit 591b8c7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ public int getSectionCount() {
}

public int handleSectionCount () {
if (peekView() == null && getParent() != null) {
getParent().getOrCreateView();
}
TiUIView listView = peekView();

if (listView != null) {
return ((TiListView) listView).getSectionCount();
}
Expand Down Expand Up @@ -458,6 +462,9 @@ public void setSections(Object sections)

private ListSectionProxy[] handleSections()
{
if (peekView() == null && getParent() != null) {
getParent().getOrCreateView();
}
TiUIView listView = peekView();

if (listView != null) {
Expand Down

0 comments on commit 591b8c7

Please sign in to comment.