mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 12:00:03 +03:00
Clean unneeded beta pills
This commit is contained in:
parent
932a43ef58
commit
f79681b343
5 changed files with 1 additions and 25 deletions
|
@ -70,7 +70,6 @@ class MatrixToRoomSpaceFragment @Inject constructor(
|
|||
val matrixItem = peek.roomItem
|
||||
avatarRenderer.render(matrixItem, views.matrixToCardAvatar)
|
||||
if (peek.roomType == RoomType.SPACE) {
|
||||
views.matrixToBetaTag.isVisible = true
|
||||
views.matrixToAccessImage.isVisible = true
|
||||
if (peek.isPublic) {
|
||||
views.matrixToAccessText.setTextOrHide(context?.getString(R.string.public_space))
|
||||
|
@ -79,8 +78,6 @@ class MatrixToRoomSpaceFragment @Inject constructor(
|
|||
views.matrixToAccessText.setTextOrHide(context?.getString(R.string.private_space))
|
||||
views.matrixToAccessImage.setImageResource(R.drawable.ic_room_private)
|
||||
}
|
||||
} else {
|
||||
views.matrixToBetaTag.isVisible = false
|
||||
}
|
||||
views.matrixToCardNameText.setTextOrHide(peek.name)
|
||||
views.matrixToCardAliasText.setTextOrHide(peek.alias)
|
||||
|
|
|
@ -50,7 +50,6 @@ class SpaceCardRenderer @Inject constructor(
|
|||
inCard.matrixToCardButtonLoading.isVisible = false
|
||||
avatarRenderer.render(spaceSummary.toMatrixItem(), inCard.matrixToCardAvatar)
|
||||
inCard.matrixToCardNameText.text = spaceSummary.name
|
||||
inCard.matrixToBetaTag.isVisible = true
|
||||
inCard.matrixToCardAliasText.setTextOrHide(spaceSummary.canonicalAlias)
|
||||
inCard.matrixToCardDescText.setTextOrHide(spaceSummary.topic.linkify(matrixLinkCallback))
|
||||
if (spaceSummary.isPublic) {
|
||||
|
@ -97,7 +96,6 @@ class SpaceCardRenderer @Inject constructor(
|
|||
inCard.matrixToCardButtonLoading.isVisible = false
|
||||
avatarRenderer.render(spaceChildInfo.toMatrixItem(), inCard.matrixToCardAvatar)
|
||||
inCard.matrixToCardNameText.setTextOrHide(spaceChildInfo.name)
|
||||
inCard.matrixToBetaTag.isVisible = true
|
||||
inCard.matrixToCardAliasText.setTextOrHide(spaceChildInfo.canonicalAlias)
|
||||
inCard.matrixToCardDescText.setTextOrHide(spaceChildInfo.topic?.linkify(matrixLinkCallback))
|
||||
if (spaceChildInfo.worldReadable) {
|
||||
|
|
|
@ -133,12 +133,6 @@ class SpaceSettingsFragment @Inject constructor(
|
|||
|
||||
state.roomSummary()?.let {
|
||||
views.roomSettingsToolbarTitleView.text = it.displayName
|
||||
views.roomSettingsToolbarTitleView.setCompoundDrawablesWithIntrinsicBounds(
|
||||
null,
|
||||
null,
|
||||
drawableProvider.getDrawable(R.drawable.ic_beta_pill),
|
||||
null
|
||||
)
|
||||
avatarRenderer.render(it.toMatrixItem(), views.roomSettingsToolbarAvatarImageView)
|
||||
views.roomSettingsDecorationToolbarAvatarImageView.render(it.roomEncryptionTrustLevel)
|
||||
}
|
||||
|
|
|
@ -28,18 +28,6 @@
|
|||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:src="@sample/room_round_avatars" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/matrixToBetaTag"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/layout_vertical_margin_big"
|
||||
android:contentDescription="@string/a11y_beta"
|
||||
android:src="@drawable/ic_beta_pill"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/matrixToCardNameText"
|
||||
style="@style/Widget.Vector.TextView.Subtitle"
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
android:layout_marginTop="8dp"
|
||||
android:text="@string/spaces_header"
|
||||
android:textColor="?vctr_content_primary"
|
||||
android:textStyle="bold"
|
||||
app:drawableEndCompat="@drawable/ic_beta_pill" />
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
style="@style/Widget.Vector.TextView.Body"
|
||||
|
|
Loading…
Reference in a new issue