mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 13:51:27 +08:00
Merge pull request #1490 from NativeScript/x4080/listview-android-realized-to-filtered-items-higher-bugfix
Fix ListView crash in android when realized items more than left items
This commit is contained in:
@ -151,11 +151,10 @@ export class ListView extends common.ListView {
|
||||
var length = keys.length;
|
||||
var view: viewModule.View;
|
||||
var key;
|
||||
|
||||
for (i = 0; i < length; i++) {
|
||||
key = keys[i];
|
||||
view = this._realizedItems[key];
|
||||
|
||||
if (view[REALIZED_INDEX] < this.items.length) {
|
||||
this.notify({
|
||||
eventName: ITEMLOADING,
|
||||
object: this,
|
||||
@ -165,6 +164,7 @@ export class ListView extends common.ListView {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var ListViewAdapterClass;
|
||||
function ensureListViewAdapterClass() {
|
||||
|
Reference in New Issue
Block a user