Merge pull request #912 from NativeScript/issue-909

Fixed #909: Android ListView will not update its UI after refresh is …
This commit is contained in:
Rossen Hristov
2015-10-12 09:54:40 +03:00

View File

@@ -117,7 +117,11 @@ export class ListView extends view.View implements definition.ListView {
public _prepareItem(item: view.View, index: number) {
if (item) {
item.bindingContext = this._getDataItem(index);
var dataItem = this._getDataItem(index);
if (!(dataItem instanceof observable.Observable)) {
item.bindingContext = null;
}
item.bindingContext = dataItem;
item._inheritProperties(this);
}
}