mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
Code review fix.
This commit is contained in:
parent
e3ee59f6c1
commit
3e0f76a362
1 changed files with 2 additions and 6 deletions
|
@ -24,6 +24,7 @@ import androidx.constraintlayout.widget.ConstraintLayout
|
|||
import androidx.core.content.res.use
|
||||
import androidx.core.view.isVisible
|
||||
import im.vector.app.R
|
||||
import im.vector.app.core.extensions.setTextOrHide
|
||||
import im.vector.app.core.extensions.setTextWithColoredPart
|
||||
import im.vector.app.databinding.ViewSessionsListHeaderBinding
|
||||
|
||||
|
@ -54,12 +55,7 @@ class SessionsListHeaderView @JvmOverloads constructor(
|
|||
|
||||
private fun setTitle(typedArray: TypedArray) {
|
||||
val title = typedArray.getString(R.styleable.SessionsListHeaderView_devicesListHeaderTitle)
|
||||
if (title.isNullOrEmpty()) {
|
||||
binding.sessionsListHeaderTitle.isVisible = false
|
||||
} else {
|
||||
binding.sessionsListHeaderTitle.isVisible = true
|
||||
binding.sessionsListHeaderTitle.text = title
|
||||
}
|
||||
binding.sessionsListHeaderTitle.setTextOrHide(title)
|
||||
}
|
||||
|
||||
private fun setDescription(typedArray: TypedArray) {
|
||||
|
|
Loading…
Reference in a new issue