Open chenycu opened 7 years ago
https://github.com/googlesamples/android-architecture-components/blob/master/GithubBrowserSample/app/src/main/java/com/android/example/github/repository/FetchNextSearchPageTask.java#L58 There is a bug here, when loading to the last page, its next page is 0 instead of null, so I add if(nextPage == null || nextPage == 0){} just fine.
if(nextPage == null || nextPage == 0){}
Want to send a PR? Also, it's missing a space :)
https://github.com/googlesamples/android-architecture-components/blob/master/GithubBrowserSample/app/src/main/java/com/android/example/github/repository/FetchNextSearchPageTask.java#L58 There is a bug here, when loading to the last page, its next page is 0 instead of null, so I add
if(nextPage == null || nextPage == 0){}
just fine.