Merge pull request #12 from TouchInstinct/protected_subject
make the field newItemsCount protected
This commit is contained in:
commit
0eb23bef57
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue