do not hide small images in article image pager
This commit is contained in:
parent
61bda147c8
commit
c284677910
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user