Skip to content

Commit

Permalink
Merge pull request #5755 from salachi/TIMOB-16079
Browse files Browse the repository at this point in the history
TIMOB-16079-modfied the code to store real index instead of the filtered...
  • Loading branch information
hieupham007 committed Jun 4, 2014
2 parents 55e16bf + 93e7d7b commit 2cacbd7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,11 @@ public void appendExtraEventData(TiUIView view, int itemIndex, int sectionIndex,

existingData.put(TiC.PROPERTY_SECTION, this);
existingData.put(TiC.PROPERTY_SECTION_INDEX, sectionIndex);
existingData.put(TiC.PROPERTY_ITEM_INDEX, itemIndex);
int realItemIndex = itemIndex;
if (isFilterOn()) {
realItemIndex = filterIndices.get(itemIndex);
}
existingData.put(TiC.PROPERTY_ITEM_INDEX, realItemIndex);

if (!bindId.startsWith(TiListViewTemplate.GENERATED_BINDING) && !bindId.equals(TiC.PROPERTY_PROPERTIES)) {
existingData.put(TiC.PROPERTY_BIND_ID, bindId);
Expand Down

0 comments on commit 2cacbd7

Please sign in to comment.