diff --git a/org.fox.ttrss/src/main/AndroidManifest.xml b/org.fox.ttrss/src/main/AndroidManifest.xml index df9259ef..ecc184d6 100755 --- a/org.fox.ttrss/src/main/AndroidManifest.xml +++ b/org.fox.ttrss/src/main/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="362" + android:versionName="1.135" > 1) { + // m_articles[0] is the special spacer (id -2) + //Log.d(TAG, "TOPID:" + m_articles.get(1).id); + checkTopId = m_articles.get(1).id; + } else { + checkTopId = 0; + } HashMap map = new HashMap() { { @@ -242,10 +252,12 @@ public class ArticlePager extends Fragment { put("search_mode", ""); put("match_on", "both"); } + + if (checkTopId > 0) put("check_top_id", String.valueOf(checkTopId)); } }; - Log.d(TAG, "[AP] request more headlines..."); + Log.d(TAG, "[AP] request more headlines, topId=" + checkTopId); req.execute(map); } diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java index 2a945d9d..8cc9e468 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java @@ -602,7 +602,17 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, Log.d(TAG, "allowForceUpdate=" + allowForceUpdate + " userInitiated=" + userInitiated); req.setOffset(skip); - + + final int checkTopId; + + if (skip != 0 && m_articles.size() > 1) { + // m_articles[0] is the special spacer (id -2) + //Log.d(TAG, "TOPID:" + m_articles.get(1).id); + checkTopId = m_articles.get(1).id; + } else { + checkTopId = 0; + } + HashMap map = new HashMap() { { put("op", "getHeadlines"); @@ -631,11 +641,12 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, put("search_mode", ""); put("match_on", "both"); } - - } + + if (checkTopId > 0) put("check_top_id", String.valueOf(checkTopId)); + } }; - Log.d(TAG, "[HP] request more headlines..."); + Log.d(TAG, "[HP] request more headlines, topId=" + checkTopId); req.execute(map); }