summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/java
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-06-25 22:34:24 +0300
committerAndrew Dolgov <[email protected]>2015-06-25 22:34:24 +0300
commit26e14506c5bf9f5c4c8f156e099201e5f543ee99 (patch)
tree20ccccc975b4a35d1755a4042a35a9ac215c7417 /org.fox.ttrss/src/main/java
parentafccfa1003090faeeb0f44eb050da0816dcac1ac (diff)
add workaround for top headline glitching out behind the toolbar while refreshing through fab
Diffstat (limited to 'org.fox.ttrss/src/main/java')
-rwxr-xr-xorg.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java5
1 files changed, 5 insertions, 0 deletions
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 214197ad..2b031d3c 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
@@ -535,6 +535,11 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
m_adapter.notifyDataSetChanged();
m_listener.onHeadlinesLoaded(fappend);
+
+ // not sure why but listview sometimes gets positioned while ignoring the header so
+ // top headline content becomes partially obscured by the toolbar on phones
+ // (not reproducible on avd)
+ if (!fappend) m_list.smoothScrollToPosition(0);
} else {
if (m_lastError == ApiError.LOGIN_FAILED) {