replace smooth scrolling with setSelection(0) on headlines refresh (refs

#767)
This commit is contained in:
Andrew Dolgov 2013-08-29 13:20:17 +04:00
parent 02a8162956
commit 0e751f5db2

View File

@ -378,7 +378,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
Log.d(TAG, "scroll hack"); Log.d(TAG, "scroll hack");
ListView list = (ListView)getView().findViewById(R.id.headlines); ListView list = (ListView)getView().findViewById(R.id.headlines);
m_autoCatchupDisabled = true; m_autoCatchupDisabled = true;
list.smoothScrollToPosition(0); list.setSelection(0);
m_autoCatchupDisabled = false; m_autoCatchupDisabled = false;
} }
} }