Today I have implemented paging library in my app that uses TMDb api. Everything work nice, but I'm struggling with displaying current page.
In DataSource class I have value:
val currentPage = MutableLiveData<Page>() // Page => currentPage, totalPages
that is updated every "loadAfter" function.
This MutableLiveData is observed in ViewModel and then displayed in Activity. When user scroll down, the number of current page increase, but when user scroll up, the number stay the same.
Anyone have an idea how to notify scrolling up?