Handled HTML in profile descriptions (#204)

This commit is contained in:
mjaillot 2020-05-21 22:39:51 +02:00 committed by GitHub
parent edf56c4ce3
commit f95f72aeae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ import com.h.pixeldroid.objects.Account.Companion.ACCOUNT_TAG
import com.h.pixeldroid.objects.Relationship
import com.h.pixeldroid.objects.Status
import com.h.pixeldroid.utils.DBUtils
import com.h.pixeldroid.utils.HtmlUtils.Companion.parseHTMLText
import com.h.pixeldroid.utils.ImageConverter
import retrofit2.Call
import retrofit2.Callback
@ -102,7 +103,8 @@ class ProfileActivity : AppCompatActivity() {
ImageConverter.setRoundImageFromURL(View(applicationContext), account!!.avatar, profilePicture)
val description = findViewById<TextView>(R.id.descriptionTextView)
description.text = account!!.note
description.text = parseHTMLText(account!!.note, emptyList(), pixelfedAPI,
applicationContext, "Bearer $accessToken")
val accountName = findViewById<TextView>(R.id.accountNameTextView)
accountName.text = account!!.display_name