From 8ab6fb7cfd297ef79b21679234078d867db42cfa Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 3 Sep 2018 13:26:30 +0200 Subject: [PATCH] Parse comments content --- .../android/comunic/client/ui/adapters/CommentsAdapter.java | 3 ++- app/src/main/res/layout/comment_item.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/CommentsAdapter.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/CommentsAdapter.java index 9793fc1..247c87e 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/CommentsAdapter.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/CommentsAdapter.java @@ -13,6 +13,7 @@ import org.communiquons.android.comunic.client.R; import org.communiquons.android.comunic.client.data.models.Comment; import org.communiquons.android.comunic.client.data.models.UserInfo; import org.communiquons.android.comunic.client.ui.listeners.onPostUpdateListener; +import org.communiquons.android.comunic.client.ui.views.ContentTextView; import org.communiquons.android.comunic.client.ui.views.EnlargeableWebImageView; import org.communiquons.android.comunic.client.ui.views.LikeButtonView; import org.communiquons.android.comunic.client.ui.views.WebUserAccountImage; @@ -86,7 +87,7 @@ class CommentsAdapter extends ArrayAdapter { } //Update comment content - ((TextView) view.findViewById(R.id.comment_text)).setText(comment.getContent()); + ((ContentTextView) view.findViewById(R.id.comment_text)).setParsedText(comment.getContent()); //Update comment image (if any) EnlargeableWebImageView commentImage = view.findViewById(R.id.comment_image); diff --git a/app/src/main/res/layout/comment_item.xml b/app/src/main/res/layout/comment_item.xml index 61b40f3..4029ec7 100644 --- a/app/src/main/res/layout/comment_item.xml +++ b/app/src/main/res/layout/comment_item.xml @@ -24,7 +24,7 @@ -