Commit 0ff62abe authored by Thomas's avatar Thomas

Prepares release 2.13.2

parent 0354b3c7
Pipeline #157072 passed with stages
in 6 minutes and 49 seconds
......@@ -220,7 +220,7 @@ public class Notification implements Parcelable {
@Override
public void onResourceReady(@NonNull Drawable resource, @Nullable Transition<? super Drawable> transition) {
final String targetedEmoji = ":" + emoji.getShortcode() + ":";
if (displayNameSpan != null && displayNameSpan.toString().contains(targetedEmoji)) {
if (displayNameSpan.toString().contains(targetedEmoji)) {
//emojis can be used several times so we have to loop
for (int startPosition = -1; (startPosition = displayNameSpan.toString().indexOf(targetedEmoji, startPosition + 1)) != -1; startPosition++) {
final int endPosition = startPosition + targetedEmoji.length();
......
......@@ -4226,7 +4226,8 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
if (statusListAdapter.getItemAt(i) != null && statusListAdapter.getItemAt(i).getId().equals(status.getId())) {
try {
statuses.set(i, status);
if( mRecyclerView != null) {
statusListAdapter.notifyItemChanged(i);
/*if( mRecyclerView != null) {
int finalI = i;
mRecyclerView.post(new Runnable() {
@Override
......@@ -4234,9 +4235,8 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
statusListAdapter.notifyItemChanged(finalI);
}
});
}
} catch (Exception ignored) {
}
}*/
} catch (Exception ignored) {}
break;
}
}
......@@ -4250,7 +4250,8 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
if (statusListAdapter.getItemAt(i) != null && statusListAdapter.getItemAt(i).getId().equals(status.getId())) {
try {
statuses.set(i, status);
if( mRecyclerView != null) {
statusListAdapter.notifyItemChanged(i);
/*if( mRecyclerView != null) {
int finalI = i;
mRecyclerView.post(new Runnable() {
@Override
......@@ -4258,9 +4259,8 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
statusListAdapter.notifyItemChanged(finalI);
}
});
}
} catch (Exception ignored) {
}
}*/
} catch (Exception ignored) {}
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment