From b3adad85438042f0923123a66837c63f3f041ff1 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Mon, 13 Jun 2022 11:33:51 +0100 Subject: [PATCH] hiding connect to server button in favour of handling as part of the FTUE v2 work --- .../features/onboarding/ftueauth/FtueAuthUseCaseFragment.kt | 4 ++++ vector/src/main/res/layout/fragment_ftue_auth_use_case.xml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthUseCaseFragment.kt b/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthUseCaseFragment.kt index 35439a794e..bd5793f195 100644 --- a/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthUseCaseFragment.kt +++ b/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthUseCaseFragment.kt @@ -28,6 +28,7 @@ import androidx.annotation.ColorRes import androidx.annotation.DrawableRes import androidx.annotation.StringRes import androidx.core.content.ContextCompat +import androidx.core.view.isVisible import im.vector.app.R import im.vector.app.core.extensions.getResTintedDrawable import im.vector.app.core.extensions.getTintedDrawable @@ -57,6 +58,9 @@ class FtueAuthUseCaseFragment @Inject constructor( } private fun setupViews() { + // Connect to server relies on https://github.com/vector-im/element-android/issues/5782 + views.useCaseConnectToServerGroup.isVisible = false + views.useCaseOptionOne.renderUseCase( useCase = FtueUseCase.FRIENDS_FAMILY, label = R.string.ftue_auth_use_case_option_one, diff --git a/vector/src/main/res/layout/fragment_ftue_auth_use_case.xml b/vector/src/main/res/layout/fragment_ftue_auth_use_case.xml index 76f29aaab9..a561e38d01 100644 --- a/vector/src/main/res/layout/fragment_ftue_auth_use_case.xml +++ b/vector/src/main/res/layout/fragment_ftue_auth_use_case.xml @@ -153,6 +153,12 @@ app:layout_constraintHeight_min="16dp" app:layout_constraintTop_toBottomOf="@id/useCaseSkip" /> + +