From: Damyan Ivanov Date: Thu, 7 Mar 2019 05:50:17 +0000 (+0200) Subject: fallback to legacy HTML parsing X-Git-Tag: v0.8~24 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=73596d7b17563d85a94889a1b5d3b9450d115765;p=mobile-ledger.git fallback to legacy HTML parsing --- diff --git a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java index e17b40c7..c1e51442 100644 --- a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java +++ b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java @@ -422,9 +422,12 @@ public class RetrieveTransactionsTask http.setAllowUserInteraction(false); publishProgress(progress); switch (http.getResponseCode()) { - case 200: break; - case 404: return false; - default: throw new HTTPException(http.getResponseCode(), http.getResponseMessage()); + case 200: + break; + case 404: + return false; + default: + throw new HTTPException(http.getResponseCode(), http.getResponseMessage()); } try (SQLiteDatabase db = MLDB.getWritableDatabase()) { try (InputStream resp = http.getInputStream()) {