aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/camilstaps/taize/Bible.java1
1 files changed, 1 insertions, 0 deletions
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<String>() {
@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));