Update story notifications to match spec.

This commit is contained in:
Alex Hart
2022-07-01 13:34:14 -03:00
committed by Greyson Parrelli
parent bd5907ea04
commit 2270dfaf21
2 changed files with 8 additions and 2 deletions

View File

@@ -37,7 +37,12 @@ public class PagingMappingAdapter<Key> extends MappingAdapter {
if (pagingController != null) {
pagingController.onDataNeededAroundIndex(position);
}
return super.getItem(position);
if (position > 0 && position < super.getCurrentList().size()) {
return super.getItem(position);
} else {
return null;
}
}
@Override