Open-API-Android-App icon indicating copy to clipboard operation
Open-API-Android-App copied to clipboard

paging some times doesn't work

Open razaghimahdi opened this issue 4 years ago • 3 comments

so as i said paging doesn't work sometime for example: i turn on airplane mode and try to paging and i dont get new item which is correct by now b/c i dont have any network but after turning off airplane mode which it should paging works but it doesnt and i have to refersh list(swipe refresh) to paging work again, maybe we need a listener for checking network to update onUpdateQueryExhausted()?

razaghimahdi avatar Jul 23 '21 17:07 razaghimahdi

Or you don't have anything in the cache so there is no more results? I think it "looks" like paging isn't working because the network fails immediately and getting data from the cache is so fast that no progress bar shows.

mitchtabian avatar Jul 27 '21 16:07 mitchtabian

so maybe it should checks first network is available or not then if it was unavailable get from caching, all i say it's user shouldn't refresh list to make paging works again, what do u think?(maybe i make it so hard :))) )

razaghimahdi avatar Jul 30 '21 06:07 razaghimahdi

feel free to create a PR

mitchtabian avatar Jul 30 '21 18:07 mitchtabian