From 73596d7b17563d85a94889a1b5d3b9450d115765 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 7 Mar 2019 07:50:17 +0200 Subject: [PATCH] fallback to legacy HTML parsing --- .../mobileledger/async/RetrieveTransactionsTask.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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()) { -- 2.39.5