Don't try to force reload if network drop

This commit is contained in:
topjohnwu 2018-12-09 03:54:49 -05:00
parent a22e7aa0b1
commit c75512ba6e

View File

@ -94,7 +94,7 @@ public class UpdateRepos {
ANResponse<JSONArray> res = req.build().executeForJSONArray();
// Network drop
if (res.getOkHttpResponse() == null)
return false;
return true;
// JSON not updated
if (res.getOkHttpResponse().code() == HttpURLConnection.HTTP_NOT_MODIFIED)
return false;