From c284677910c54bc398dd139411c633d13e261b6a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 29 Oct 2014 23:40:03 +0300 Subject: [PATCH] do not hide small images in article image pager --- .../java/org/fox/ttrss/ArticleImagesPagerActivity.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java index 5787c8f8..dc4864be 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java @@ -62,7 +62,7 @@ public class ArticleImagesPagerActivity extends CommonActivity { } @Override - public Object instantiateItem(ViewGroup container, final int position) { + public Object instantiateItem(ViewGroup container, int position) { String url = m_urls.get(position); Log.d(TAG, "called for URL: " + url); @@ -103,12 +103,14 @@ public class ArticleImagesPagerActivity extends CommonActivity { @Override public void onLoadingComplete(String s, View view, Bitmap bitmap) { if (bitmap != null) { - if (bitmap.getWidth() < 128 || bitmap.getHeight() < 128) { + /* if (bitmap.getWidth() < 128 || bitmap.getHeight() < 128) { view.setVisibility(View.INVISIBLE); errorMessage.setVisibility(View.VISIBLE); } else { view.setTag(s); - } + } */ + + view.setTag(s); } progressBar.setVisibility(View.GONE);