[UI] Fix changelog dialog link highlighting.

This commit is contained in:
Kuba Szczodrzyński 2021-04-05 20:38:51 +02:00
parent 6884251646
commit 02d60754b6
No known key found for this signature in database
GPG Key ID: 70CB8A85BA1633CB

View File

@ -17,6 +17,7 @@ import kotlinx.coroutines.Job
import pl.szczodrzynski.edziennik.App
import pl.szczodrzynski.edziennik.R
import pl.szczodrzynski.edziennik.dp
import pl.szczodrzynski.edziennik.utils.BetterLinkMovementMethod
import kotlin.coroutines.CoroutineContext
class ChangelogDialog(
@ -53,6 +54,8 @@ class ChangelogDialog(
textView.text = Html.fromHtml(text.replace("<li>", "<br><li> - "))
}
textView.movementMethod = BetterLinkMovementMethod.getInstance()
val scrollView = ScrollView(activity)
scrollView.addView(textView)
@ -67,4 +70,4 @@ class ChangelogDialog(
}
.show()
}}
}
}