Merge branch 'profile_description_clicks' into 'master'
Fix profile description clicks Closes #318 See merge request pixeldroid/PixelDroid!496
This commit is contained in:
commit
1fa4b80fe7
|
@ -2,6 +2,7 @@ package org.pixeldroid.app.profile
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.text.method.LinkMovementMethod
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
|
@ -195,9 +196,11 @@ class ProfileActivity : BaseThemedWithBarActivity() {
|
||||||
|
|
||||||
binding.descriptionTextView.text = parseHTMLText(
|
binding.descriptionTextView.text = parseHTMLText(
|
||||||
account.note ?: "", emptyList(), apiHolder,
|
account.note ?: "", emptyList(), apiHolder,
|
||||||
applicationContext,
|
binding.descriptionTextView.context,
|
||||||
lifecycleScope
|
lifecycleScope
|
||||||
)
|
)
|
||||||
|
// This is so that the clicks in the text (eg #, @) work.
|
||||||
|
binding.descriptionTextView.movementMethod = LinkMovementMethod.getInstance();
|
||||||
|
|
||||||
val displayName = account.getDisplayName()
|
val displayName = account.getDisplayName()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue