]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fallback to legacy HTML parsing
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 7 Mar 2019 05:50:17 +0000 (07:50 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 14 Mar 2019 20:54:57 +0000 (22:54 +0200)
app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java

index e17b40c7c62fe69d00dc8d842f72d80a701bf880..c1e51442c781e12bbf8f801edcae873947a7307c 100644 (file)
@@ -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()) {