Prevent viewing tracking icon

This commit is contained in:
M66B
2021-07-03 21:34:52 +02:00
parent 14b5e76ed3
commit df24a24f16
2 changed files with 8 additions and 2 deletions

View File

@@ -4507,9 +4507,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ImageSpan[] image = buffer.getSpans(off, off, ImageSpan.class);
if (image.length > 0) {
String source = image[0].getSource();
ImageHelper.AnnotatedSource a = new ImageHelper.AnnotatedSource(image[0].getSource());
String source = a.getSource();
if (!TextUtils.isEmpty(source)) {
onOpenImage(message.id, source);
if (!a.isTracking())
onOpenImage(message.id, source);
return true;
}
}