do not hide small images in article image pager

This commit is contained in:
Andrew Dolgov 2014-10-29 23:40:03 +03:00
parent 61bda147c8
commit c284677910

View File

@ -62,7 +62,7 @@ public class ArticleImagesPagerActivity extends CommonActivity {
} }
@Override @Override
public Object instantiateItem(ViewGroup container, final int position) { public Object instantiateItem(ViewGroup container, int position) {
String url = m_urls.get(position); String url = m_urls.get(position);
Log.d(TAG, "called for URL: " + url); Log.d(TAG, "called for URL: " + url);
@ -103,12 +103,14 @@ public class ArticleImagesPagerActivity extends CommonActivity {
@Override @Override
public void onLoadingComplete(String s, View view, Bitmap bitmap) { public void onLoadingComplete(String s, View view, Bitmap bitmap) {
if (bitmap != null) { if (bitmap != null) {
if (bitmap.getWidth() < 128 || bitmap.getHeight() < 128) { /* if (bitmap.getWidth() < 128 || bitmap.getHeight() < 128) {
view.setVisibility(View.INVISIBLE); view.setVisibility(View.INVISIBLE);
errorMessage.setVisibility(View.VISIBLE); errorMessage.setVisibility(View.VISIBLE);
} else { } else {
view.setTag(s); view.setTag(s);
} } */
view.setTag(s);
} }
progressBar.setVisibility(View.GONE); progressBar.setVisibility(View.GONE);