improved external emoji

This commit is contained in:
Mariotaku Lee 2017-05-15 12:59:54 +08:00
parent 3091b5901b
commit b2e9a0f2c1
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
1 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,7 @@ import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import android.widget.TextView import android.widget.TextView
import org.mariotaku.ktextension.applyFontFamily import org.mariotaku.ktextension.applyFontFamily
import org.mariotaku.ktextension.spannable
import org.mariotaku.twidere.R import org.mariotaku.twidere.R
import org.mariotaku.twidere.adapter.ParcelableActivitiesAdapter import org.mariotaku.twidere.adapter.ParcelableActivitiesAdapter
import org.mariotaku.twidere.adapter.iface.IActivitiesAdapter import org.mariotaku.twidere.adapter.iface.IActivitiesAdapter
@ -94,8 +95,8 @@ class ActivityTitleSummaryViewHolder(
} }
activityTypeView.setColorFilter(message.color, PorterDuff.Mode.SRC_ATOP) activityTypeView.setColorFilter(message.color, PorterDuff.Mode.SRC_ATOP)
activityTypeView.setImageResource(message.icon) activityTypeView.setImageResource(message.icon)
titleView.text = message.title titleView.spannable = message.title
summaryView.text = message.summary summaryView.spannable = message.summary
summaryView.visibility = if (summaryView.length() > 0) View.VISIBLE else View.GONE summaryView.visibility = if (summaryView.length() > 0) View.VISIBLE else View.GONE
timeView.time = activity.timestamp timeView.time = activity.timestamp
if (adapter.showAccountsColor) { if (adapter.showAccountsColor) {