From e8006d5ada27ea5692295f2ba9888fdbb57f100f Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 15 Apr 2015 23:05:36 +0200 Subject: comments Bible --- app/src/main/java/com/camilstaps/taize/Bible.java | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src') diff --git a/app/src/main/java/com/camilstaps/taize/Bible.java b/app/src/main/java/com/camilstaps/taize/Bible.java index 43795f7..abb1890 100644 --- a/app/src/main/java/com/camilstaps/taize/Bible.java +++ b/app/src/main/java/com/camilstaps/taize/Bible.java @@ -64,6 +64,7 @@ public class Bible { request(context, "p=" + URLEncoder.encode(passage), new Response.Listener() { @Override public void onResponse(String s) { + // There are different types of API responses (one with a 'book' array, one without). We need to try both. StringBuilder passage = new StringBuilder(); try { JSONObject response = new JSONObject(s.substring(1, s.length() - 2)); -- cgit v1.2.3