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