scroll to listview top when refreshing headlines (closes #767)
This commit is contained in:
parent
84cfc9a9fe
commit
5a95900253
@ -371,6 +371,15 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
||||
append = false;
|
||||
}
|
||||
|
||||
// new stuff may appear on top, scroll back to show it
|
||||
if (!append) {
|
||||
if (getView() != null) {
|
||||
Log.d(TAG, "scroll hack");
|
||||
ListView list = (ListView)getView().findViewById(R.id.headlines);
|
||||
list.smoothScrollToPosition(0);
|
||||
}
|
||||
}
|
||||
|
||||
final boolean fappend = append;
|
||||
final String sessionId = m_activity.getSessionId();
|
||||
final boolean isCat = m_feed.is_cat;
|
||||
|
Loading…
Reference in New Issue
Block a user