- Notifications
You must be signed in to change notification settings - Fork 269
Open
Description
Hey there, I recently tried the demo codelab-android-paging/tree/main/advanced/start, and found the list always empty, according to the latest official document the reason is the apiQuery used in both start and end project missed a + between query and IN_QUALIFIER:
as in the start project:
IN_QUALIFIER:
Line 27 in d1f28e0
| const val IN_QUALIFIER = "in:name,description" |
apiQuery:
Line 80 in d1f28e0
| val apiQuery = query + IN_QUALIFIER |
Same code in [codelab-android-paging/tree/main/advanced/end](https://github.com/android/codelab-android-paging/tree/main/advanced/end)
Line 27 in d1f28e0
| const val IN_QUALIFIER = "in:name,description" |
Line 85 in d1f28e0
| val apiQuery = query + IN_QUALIFIER |
if we input a query as "Android", the final network request URL will be "https://api.github.com/search/repositories?sort=stars&q=Androidin%3Aname%2Cdescription&page=1&per_page=30"
and the result:
{ "total_count": 0, "incomplete_results": false, "items": [ ] } after we add a + :
and the result:
{ "total_count": 64, "incomplete_results": false, "items": [ ... ] } diegocarloslima
Metadata
Metadata
Assignees
Labels
No labels