do not try to load new stuff in pager on tablets

This commit is contained in:
Andrew Dolgov 2012-09-18 17:10:25 +04:00
parent 51b0bbf19f
commit 2d1b3c2dba

View File

@ -109,7 +109,7 @@ public class ArticlePager extends Fragment {
//Log.d(TAG, "Page #" + position + "/" + m_adapter.getCount()); //Log.d(TAG, "Page #" + position + "/" + m_adapter.getCount());
if (position == m_adapter.getCount() - 5) { if (m_activity.isSmallScreen() && position == m_adapter.getCount() - 5) {
Log.d(TAG, "loading more articles..."); Log.d(TAG, "loading more articles...");
loadMoreArticles(); loadMoreArticles();
} }