Fix #512
This commit is contained in:
parent
51219bf98a
commit
ddfeaabd44
|
@ -148,7 +148,7 @@ public class HomeTimelineFragment extends StatusListFragment{
|
||||||
protected void onHidden(){
|
protected void onHidden(){
|
||||||
super.onHidden();
|
super.onHidden();
|
||||||
if(!data.isEmpty()){
|
if(!data.isEmpty()){
|
||||||
String topPostID=displayItems.get(list.getChildAdapterPosition(list.getChildAt(0))-getMainAdapterOffset()).parentID;
|
String topPostID=displayItems.get(Math.max(0, list.getChildAdapterPosition(list.getChildAt(0))-getMainAdapterOffset())).parentID;
|
||||||
if(!topPostID.equals(lastSavedMarkerID)){
|
if(!topPostID.equals(lastSavedMarkerID)){
|
||||||
lastSavedMarkerID=topPostID;
|
lastSavedMarkerID=topPostID;
|
||||||
new SaveMarkers(topPostID, null)
|
new SaveMarkers(topPostID, null)
|
||||||
|
|
Loading…
Reference in New Issue