From 8936ef83174715061f9f501c9010f13f9a1d43ab Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Fri, 9 Oct 2015 17:04:10 +0300 Subject: [PATCH] Fixed #909: Android ListView will not update its UI after refresh is called until it is scrolled up and down. --- ui/list-view/list-view-common.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/list-view/list-view-common.ts b/ui/list-view/list-view-common.ts index 9dfa3771c..46b72f07d 100644 --- a/ui/list-view/list-view-common.ts +++ b/ui/list-view/list-view-common.ts @@ -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); } }