Parse comments content

This commit is contained in:
Pierre HUBERT 2018-09-03 13:26:30 +02:00
parent 9cf7e86ac8
commit 8ab6fb7cfd
2 changed files with 3 additions and 2 deletions

View File

@ -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.Comment;
import org.communiquons.android.comunic.client.data.models.UserInfo; 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.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.EnlargeableWebImageView;
import org.communiquons.android.comunic.client.ui.views.LikeButtonView; import org.communiquons.android.comunic.client.ui.views.LikeButtonView;
import org.communiquons.android.comunic.client.ui.views.WebUserAccountImage; import org.communiquons.android.comunic.client.ui.views.WebUserAccountImage;
@ -86,7 +87,7 @@ class CommentsAdapter extends ArrayAdapter<Comment> {
} }
//Update comment content //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) //Update comment image (if any)
EnlargeableWebImageView commentImage = view.findViewById(R.id.comment_image); EnlargeableWebImageView commentImage = view.findViewById(R.id.comment_image);

View File

@ -24,7 +24,7 @@
<!-- Comment content --> <!-- Comment content -->
<TextView <org.communiquons.android.comunic.client.ui.views.ContentTextView
android:id="@+id/comment_text" android:id="@+id/comment_text"
style="@style/CommentText" style="@style/CommentText"
android:layout_width="0dp" android:layout_width="0dp"