Revert "work around crash onHidden"

This reverts commit 763c5fe2a7.
This commit is contained in:
sk 2023-01-21 19:14:24 -03:00 committed by LucasGGamerM
parent 8d827054bf
commit 8c6ac9e22b
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ public class HomeTimelineFragment extends FabStatusListFragment {
protected void onHidden(){
super.onHidden();
if(!data.isEmpty()){
String topPostID=displayItems.get(Math.max(0, list.getChildAdapterPosition(list.getChildAt(0))-getMainAdapterOffset())).parentID;
String topPostID=displayItems.get(list.getChildAdapterPosition(list.getChildAt(0))-getMainAdapterOffset()).parentID;
if(!topPostID.equals(lastSavedMarkerID)){
lastSavedMarkerID=topPostID;
new SaveMarkers(topPostID, null)