Last active
May 30, 2017 08:30
-
-
Save EfeBudak/26317f360731fd56bfc25fd5db31a4dd to your computer and use it in GitHub Desktop.
Android Pagination with MVP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onLoadNextPage() { | |
mCurrentPage++; | |
mView.setRefreshing(true); | |
getPage(); | |
} | |
@Override | |
public void onRefresh() { | |
mCurrentPage = 0; | |
mView.setRefreshing(true); | |
mTrendingRepository.refresh(); | |
getPage(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment