add workaround for top headline glitching out behind the toolbar while refreshing through fab

This commit is contained in:
Andrew Dolgov 2015-06-25 22:34:24 +03:00
parent afccfa1003
commit 26e14506c5
2 changed files with 7 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="352"
android:versionName="1.125" >
android:versionCode="353"
android:versionName="1.126" >
<uses-sdk
android:minSdkVersion="15"

View File

@ -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) {