Commit 0f0a0cd7 authored by lfdi-user's avatar lfdi-user
Browse files

Bugfix: Änderung Mastodon-Server API

parent 9063dbd8
......@@ -16,8 +16,8 @@ android {
applicationId "de.bwl.lfdi.app"
minSdkVersion 21
targetSdkVersion 31
versionCode 1
versionName "1.0"
versionCode 2
versionName "1.1"
multiDexEnabled = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
......
......@@ -87,10 +87,6 @@ class MastodonStatusViewHolder(itemView : View) : MastodonViewHolder(itemView) {
//fixed fields
date.text = relativeTime(item.status.createdAt)
//text
val textContent = item.status.content
content.text = decodeHTML(textContent).trim()
content.movementMethod = LinkMovementMethod.getInstance()
//media
......@@ -127,8 +123,10 @@ class MastodonStatusViewHolder(itemView : View) : MastodonViewHolder(itemView) {
repliesCount.text = context.getString(R.string.item_count, item.reblog.status.repliesCount)
retootCount.text = context.getString(R.string.item_count, item.reblog.status.reblogsCount)
starCount.text = context.getString(R.string.item_count, item.reblog.status.favouritesCount)
//case original - remove indicator
content.text = decodeHTML(item.reblog.status.content).trim()
} else {
//case original - remove indicator
addMediaViews(item, context)
repostImage.visibility = View.GONE
repostText.visibility = View.GONE
......@@ -145,6 +143,8 @@ class MastodonStatusViewHolder(itemView : View) : MastodonViewHolder(itemView) {
repliesCount.text = context.getString(R.string.item_count, item.status.repliesCount)
retootCount.text = context.getString(R.string.item_count, item.status.reblogsCount)
starCount.text = context.getString(R.string.item_count, item.status.favouritesCount)
content.text = decodeHTML(item.status.content).trim()
}
CoroutineScope(Main).launch {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment