mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 20:15:29 +00:00
parent
9c63e31da6
commit
fd4a27dbf2
@ -92,6 +92,10 @@ public class UpdateRepos {
|
||||
req.addHeaders(Const.Key.IF_NONE_MATCH, etag);
|
||||
}
|
||||
ANResponse<JSONArray> res = req.build().executeForJSONArray();
|
||||
// Network drop
|
||||
if (res.getOkHttpResponse() == null)
|
||||
return false;
|
||||
// JSON not updated
|
||||
if (res.getOkHttpResponse().code() == HttpURLConnection.HTTP_NOT_MODIFIED)
|
||||
return false;
|
||||
// Current page is the last page
|
||||
|
Loading…
Reference in New Issue
Block a user