Changes between add space and create space

This commit is contained in:
ericdecanini 2022-05-17 15:28:28 +02:00
parent 10ceb56321
commit c7efb2cec9
2 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,7 @@ class SpaceListModalFragment : VectorBaseFragment<FragmentSpaceListModalBinding>
viewModel.setSpace(it) viewModel.setSpace(it)
binding.headerText.isVisible = it == null binding.headerText.isVisible = it == null
binding.headerTextLayout.isVisible = binding.headerText.isVisible || binding.invitesGroup.isVisible binding.headerTextLayout.isVisible = binding.headerText.isVisible || binding.invitesGroup.isVisible
binding.addSpaceText.setText(if (it == null) R.string.create_space else R.string.add_space)
} }
override fun invalidate() { override fun invalidate() {

View File

@ -166,6 +166,7 @@
app:tint="?attr/vctr_spoiler_background_color" /> app:tint="?attr/vctr_spoiler_background_color" />
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:id="@+id/add_space_text"
style="@style/Widget.Vector.TextView.Body.Medium" style="@style/Widget.Vector.TextView.Body.Medium"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"