Autolink web prevents other markdown links from beeing rendered
This commit is contained in:
@@ -75,8 +75,10 @@ public class ListMessageAdapter extends BaseAdapter {
|
|||||||
ViewHolder holder = new ViewHolder(view);
|
ViewHolder holder = new ViewHolder(view);
|
||||||
final MessageWithImage message = items.get(position);
|
final MessageWithImage message = items.get(position);
|
||||||
if (Extras.useMarkdown(message.message)) {
|
if (Extras.useMarkdown(message.message)) {
|
||||||
|
holder.message.setAutoLinkMask(0);
|
||||||
markwon.setMarkdown(holder.message, message.message.getMessage());
|
markwon.setMarkdown(holder.message, message.message.getMessage());
|
||||||
} else {
|
} else {
|
||||||
|
holder.message.setAutoLinkMask(Linkify.WEB_URLS);
|
||||||
holder.message.setText(message.message.getMessage());
|
holder.message.setText(message.message.getMessage());
|
||||||
}
|
}
|
||||||
holder.title.setText(message.message.getTitle());
|
holder.title.setText(message.message.getTitle());
|
||||||
|
|||||||
@@ -46,7 +46,6 @@
|
|||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:layout_marginEnd="8dp"
|
android:layout_marginEnd="8dp"
|
||||||
android:autoLink="web"
|
|
||||||
android:textIsSelectable="true"
|
android:textIsSelectable="true"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toEndOf="@+id/message_image"
|
app:layout_constraintStart_toEndOf="@+id/message_image"
|
||||||
|
|||||||
Reference in New Issue
Block a user