fix headlinesfragment loading constantly if received < request size

This commit is contained in:
Andrew Dolgov 2016-04-20 16:57:42 +03:00
parent f0de531e2e
commit bcd19a284e
2 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="410"
android:versionName="1.176" >
android:versionCode="411"
android:versionName="1.177" >
<uses-sdk
android:minSdkVersion="16"

View File

@ -638,6 +638,10 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
m_list.addFooterView(m_topChangedView, null, false);
}
if (m_amountLoaded < HEADLINES_REQUEST_SIZE) {
m_lazyLoadDisabled = true;
}
HeadlinesFragment.this.m_firstId = m_firstId;
m_adapter.notifyDataSetChanged();