Merge pull request #1715 from mfietz/issue/1714-icon-unlimited-cache

Do not show full disk icon if cache size is unlimited
This commit is contained in:
Martin Fietz 2016-02-23 23:00:09 +01:00
commit 6a6860d37a

View File

@ -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);