Update TimelineFragment.java
This commit is contained in:
parent
f76a271e87
commit
a99db8f040
@ -131,7 +131,7 @@ public class TimelineFragment extends SFragment implements
|
|||||||
@Inject
|
@Inject
|
||||||
public EventHub eventHub;
|
public EventHub eventHub;
|
||||||
@Inject
|
@Inject
|
||||||
public TimelineRepository timelineRepo;
|
TimelineRepository timelineRepo;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public AccountManager accountManager;
|
public AccountManager accountManager;
|
||||||
@ -1058,9 +1058,7 @@ public class TimelineFragment extends SFragment implements
|
|||||||
Either<Placeholder, Status> lastOfNew = newStatuses.get(newStatuses.size() - 1);
|
Either<Placeholder, Status> lastOfNew = newStatuses.get(newStatuses.size() - 1);
|
||||||
int index = statuses.indexOf(lastOfNew);
|
int index = statuses.indexOf(lastOfNew);
|
||||||
|
|
||||||
for (int i = 0; i < index; i++) {
|
statuses.subList(0, index).clear();
|
||||||
statuses.remove(0);
|
|
||||||
}
|
|
||||||
int newIndex = newStatuses.indexOf(statuses.get(0));
|
int newIndex = newStatuses.indexOf(statuses.get(0));
|
||||||
if (newIndex == -1) {
|
if (newIndex == -1) {
|
||||||
if (index == -1 && fullFetch) {
|
if (index == -1 && fullFetch) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user