Merge pull request #12 from TouchInstinct/protected_subject

make the field newItemsCount protected
This commit is contained in:
Gavriil 2016-09-29 17:53:17 +03:00 committed by GitHub
commit 0eb23bef57
1 changed files with 9 additions and 0 deletions

View File

@ -126,6 +126,15 @@ public class LoadingRenewableList<TItem, TReference, TNewerReference,
return newerItemsCount.getValue() != 0;
}
/**
* Update a new items count.
*
* @param count new items count
*/
public void updateNewerItemsCount(final int count) {
newerItemsCount.onNext(count);
}
/**
* Returns {@link Observable} which is providing status of if is there are new items to load or not.
*