Fixes jumps in list

This commit is contained in:
tom79 2017-10-07 10:16:48 +02:00
parent 4d0c3dae7e
commit 5d954f6902
2 changed files with 1 additions and 2 deletions

View File

@ -193,7 +193,6 @@ public class DisplayNotificationsFragment extends Fragment implements OnRetrieve
}
if( firstLoad) {
//Update the id of the last notification retrieved
MainActivity.lastNotificationId = notifications.get(0).getId();
updateNotificationLastId(sharedpreferences, this.userId, notifications.get(0).getId());
}

View File

@ -532,7 +532,7 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn
for (Status st : this.statuses) {
knownId.add(st.getId());
}
int index = lv_status.getFirstVisiblePosition() + 1;
int index = lv_status.getFirstVisiblePosition() + statuses.size();
View v = lv_status.getChildAt(0);
int top = (v == null) ? 0 : v.getTop();
for (int i = statuses.size()-1 ; i >= 0 ; i--) {