diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2015-09-01 23:47:39 +0200 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2015-09-01 23:47:39 +0200 |
commit | dbf243267ec4fa37b0d67693856a7369356c548a (patch) | |
tree | 1563e79171ecbfc6099fa081a4e89e8c0f3e9a09 /app/src/main | |
parent | ad0212c039a0a9116c48c1d7bb7ef0beac0d6670 (diff) | |
download | AntennaPod-dbf243267ec4fa37b0d67693856a7369356c548a.zip |
Check that URL is not null or empty
Diffstat (limited to 'app/src/main')
-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 9f0ba9c92..14853c5ae 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(""); } |