fix duplicate detail status (#2345)
This commit is contained in:
parent
a90be172ee
commit
a76c580d7e
|
@ -499,7 +499,7 @@ public final class ViewThreadFragment extends SFragment implements
|
||||||
private int setStatus(Status status) {
|
private int setStatus(Status status) {
|
||||||
if (statuses.size() > 0
|
if (statuses.size() > 0
|
||||||
&& statusIndex < statuses.size()
|
&& statusIndex < statuses.size()
|
||||||
&& statuses.get(statusIndex).equals(status)) {
|
&& statuses.get(statusIndex).getId().equals(status.getId())) {
|
||||||
// Do not add this status on refresh, it's already in there.
|
// Do not add this status on refresh, it's already in there.
|
||||||
statuses.set(statusIndex, status);
|
statuses.set(statusIndex, status);
|
||||||
return statusIndex;
|
return statusIndex;
|
||||||
|
|
Loading…
Reference in New Issue