From 415c76b392c78f0b05835d1d9c10355e2696bdf9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 1 Jun 2017 20:59:37 +0300 Subject: [PATCH] move headlines list to top if not appending on refresh --- .../src/main/java/org/fox/ttrss/HeadlinesFragment.java | 4 ++++ 1 file changed, 4 insertions(+) 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 3a703d72..1c109621 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 @@ -578,6 +578,10 @@ public class HeadlinesFragment extends Fragment { if (m_swipeLayout != null) m_swipeLayout.setRefreshing(true); + if (!append) { + m_list.scrollToPosition(0); + } + final String sessionId = m_activity.getSessionId(); final boolean isCat = m_feed.is_cat;