Fixes jumps in list
This commit is contained in:
parent
4d0c3dae7e
commit
5d954f6902
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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--) {
|
||||
|
|
Loading…
Reference in New Issue