Commentaries with html parsed

This commit is contained in:
ivan agosto 2019-02-16 00:33:54 -06:00
parent fb98d96f66
commit a6f3a4b6b4
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import android.content.Intent
import android.graphics.drawable.Drawable
import android.os.AsyncTask
import android.support.v7.widget.RecyclerView
import android.text.Html
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
@ -65,7 +66,7 @@ class CommentariesAdapter(private val myDataset: ArrayList<CommentaryModel>) :
if(myDataset[position].userImageUrl!="")
Picasso.get().load("https://"+ManagerSingleton.url+myDataset[position].userImageUrl).into(holder.userImg);
holder.commentary.text = myDataset[position].commentary
holder.commentary.text = Html.fromHtml(myDataset[position].commentary)
}