Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/1161'
Browse files Browse the repository at this point in the history
  • Loading branch information
morckx committed Jul 13, 2023
2 parents 0e9fca3 + 5f0c0f2 commit 31ca58d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/java/net/programmierecke/radiodroid2/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ private static String downloadFeed(OkHttpClient httpClient, Context ctx, String

String responseStr = response.body().string();

if (!response.isSuccessful()) {
Log.e("UTIL", "Unsuccessful response: " + response.message() + "\n" + responseStr);
return null;
}

writeFileCache(ctx, theURI, responseStr);
if (BuildConfig.DEBUG) {
Log.d("UTIL", "wrote cache file for:" + theURI);
Expand Down

0 comments on commit 31ca58d

Please sign in to comment.