diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2015-09-01 23:47:39 +0200 |
---|---|---|
committer | Tom Hennen <tom.hennen@gmail.com> | 2015-09-06 10:59:32 -0400 |
commit | e9b5203db93361be254269ab5b130e8b8af57981 (patch) | |
tree | 22c87e9bf619460a2bb5744c197039a68799a088 /app | |
parent | 999220a417bfb9170a5b23e3c967dd6c6d69e8f4 (diff) | |
download | AntennaPod-e9b5203db93361be254269ab5b130e8b8af57981.zip |
Check that URL is not null or empty
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/AdapterUtils.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/AdapterUtils.java b/app/src/main/java/de/danoeh/antennapod/adapter/AdapterUtils.java index 854358285..e279ead63 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/AdapterUtils.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/AdapterUtils.java @@ -1,5 +1,6 @@ package de.danoeh.antennapod.adapter; +import android.util.Log; import android.view.View; import android.widget.ProgressBar; import android.widget.TextView; @@ -52,13 +53,16 @@ public class AdapterUtils { txtvPos.setText("{fa-spinner}"); Iconify.addIcons(txtvPos); NetworkUtils.getFeedMediaSizeObservable(media) - .subscribe(size -> { + .subscribe( + size -> { if (size > 0) { txtvPos.setText(Converter.byteToString(size)); } else { txtvPos.setText(""); } - }); + }, error -> { + Log.e(TAG, Log.getStackTraceString(error)); + }); } else { txtvPos.setText(""); } |