Fix #512
This commit is contained in:
parent
55a2ae8748
commit
8d827054bf
@ -98,10 +98,8 @@ public class HomeTimelineFragment extends FabStatusListFragment {
|
||||
@Override
|
||||
protected void onHidden(){
|
||||
super.onHidden();
|
||||
// workaround for mastodon#512. revert if fixed otherwise
|
||||
int position = list.getChildAdapterPosition(list.getChildAt(0))-getMainAdapterOffset();
|
||||
if(!data.isEmpty() && position >= 0 && position < displayItems.size()){
|
||||
String topPostID=displayItems.get(position).parentID;
|
||||
if(!data.isEmpty()){
|
||||
String topPostID=displayItems.get(Math.max(0, list.getChildAdapterPosition(list.getChildAt(0))-getMainAdapterOffset())).parentID;
|
||||
if(!topPostID.equals(lastSavedMarkerID)){
|
||||
lastSavedMarkerID=topPostID;
|
||||
new SaveMarkers(topPostID, null)
|
||||
|
Loading…
Reference in New Issue
Block a user