diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-02-23 23:00:09 +0100 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-02-23 23:00:09 +0100 |
commit | 6a6860d37a8a4b4366197e5106d5bc222579b46b (patch) | |
tree | 4601d8eec0325b1478d3bbc357b90994cd3923fa | |
parent | edc3c4c08d9ff1f50b75a1092119d10e01f9791f (diff) | |
parent | 0677c70a4df9cb51d9f45b729129de51ad49a93a (diff) | |
download | AntennaPod-6a6860d37a8a4b4366197e5106d5bc222579b46b.zip |
Merge pull request #1715 from mfietz/issue/1714-icon-unlimited-cache
Do not show full disk icon if cache size is unlimited
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java index 269614d35..6d7e6dcac 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java @@ -232,7 +232,7 @@ public class NavListAdapter extends BaseAdapter int spaceUsed = itemAccess.getNumberOfDownloadedItems() - itemAccess.getReclaimableItems(); - if (spaceUsed >= epCacheSize) { + if (epCacheSize > 0 && spaceUsed >= epCacheSize) { holder.count.setText("{md-disc-full 150%}"); Iconify.addIcons(holder.count); holder.count.setVisibility(View.VISIBLE); |