fix(content): 콘텐츠 상세 펼침 말줄임을 복원한다
This commit is contained in:
+8
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("ktlint:package-name", "ktlint:standard:package-name")
|
||||
|
||||
package kr.co.vividnext.sodalive.audio_content.detail
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
@@ -10,6 +12,7 @@ import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import android.text.TextUtils
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.inputmethod.InputMethodManager
|
||||
@@ -463,6 +466,11 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
||||
}
|
||||
|
||||
viewModel.isExpandDetail.observe(this) {
|
||||
binding.tvDetail.ellipsize = if (it) {
|
||||
null
|
||||
} else {
|
||||
TextUtils.TruncateAt.END
|
||||
}
|
||||
binding.tvDetail.maxLines = if (it) {
|
||||
Int.MAX_VALUE
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user