mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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:
@@ -117,7 +117,11 @@ export class ListView extends view.View implements definition.ListView {
|
|||||||
|
|
||||||
public _prepareItem(item: view.View, index: number) {
|
public _prepareItem(item: view.View, index: number) {
|
||||||
if (item) {
|
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);
|
item._inheritProperties(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user