diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2022-02-24 02:26:56 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2022-02-24 02:26:56 +0900 |
commit | ad0568c451eb7861cdd583c3121903fb1ba9eefa (patch) | |
tree | 1505c79a45e96b4a94b6746961d770c264fb1d53 | |
parent | b39a6f40b3cf95d1b62a550fca622c11eddf5293 (diff) | |
download | snag-ad0568c451eb7861cdd583c3121903fb1ba9eefa.tar.gz |
app: show is-reply icon on tweets with in-reply-to-status-id only
-rw-r--r-- | app/src/main/kotlin/jp/rhe/snag/views/TweetView.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/kotlin/jp/rhe/snag/views/TweetView.kt b/app/src/main/kotlin/jp/rhe/snag/views/TweetView.kt index 6c6f35d..afe3ad3 100644 --- a/app/src/main/kotlin/jp/rhe/snag/views/TweetView.kt +++ b/app/src/main/kotlin/jp/rhe/snag/views/TweetView.kt @@ -75,7 +75,7 @@ constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0 // Display tweet body val ssb = SpannableStringBuilder(tweet.text) - if (tweet.inReplyToUser != null) { + if (tweet.inReplyToStatus != null) { ssb.insert(0, " ") val d = ResourcesCompat.getDrawable(resources, R.drawable.ic_baseline_reply_24, context.theme)!! d.setTint(binding.base.tweetContent.currentTextColor) |