Fixes a bug where mentioning users of the same username links them all to the same profile. Closes #312

Also, removes the title on the search page and fixes an intermittent crash on thread pages when elements load in a paritcular order.
This commit is contained in:
Vavassor 2017-06-20 18:41:57 -04:00
commit 8b4e377d34
5 changed files with 29 additions and 6 deletions

View file

@ -231,8 +231,6 @@ class StatusViewHolder extends RecyclerView.ViewHolder {
}
});
}
}
if (sensitive) {

View file

@ -82,7 +82,9 @@ public class ThreadAdapter extends RecyclerView.Adapter implements AdapterItemRe
}
public int setStatus(Status status) {
if (statuses.size() > 0 && statuses.get(statusIndex).equals(status)) {
if (statuses.size() > 0
&& statusIndex < statuses.size()
&& statuses.get(statusIndex).equals(status)) {
// Do not add this status on refresh, it's already in there.
statuses.set(statusIndex, status);
return statusIndex;