launching the ems site when tapping get in touch

This commit is contained in:
Adam Brown 2022-04-04 17:31:50 +01:00
parent 89f182ac35
commit 1d92b4293b
2 changed files with 5 additions and 0 deletions

View file

@ -21,12 +21,14 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.EditorInfo
import im.vector.app.R
import im.vector.app.core.extensions.content
import im.vector.app.core.extensions.editText
import im.vector.app.core.extensions.realignPercentagesToParent
import im.vector.app.core.extensions.toReducedUrl
import im.vector.app.core.utils.ensureProtocol
import im.vector.app.core.utils.ensureTrailingSlash
import im.vector.app.core.utils.openUrlInExternalBrowser
import im.vector.app.databinding.FragmentFtueServerSelectionCombinedBinding
import im.vector.app.features.onboarding.OnboardingAction
import im.vector.app.features.onboarding.OnboardingViewEvents
@ -56,6 +58,8 @@ class FtueAuthCombinedServerSelectionFragment @Inject constructor() : AbstractFt
false
}
views.chooseServerGetInTouch.debouncedClicks { openUrlInExternalBrowser(requireContext(), getString(R.string.ftue_ems_url)) }
views.chooseServerSubmit.debouncedClicks {
updateServerUrl()
}

View file

@ -26,5 +26,6 @@
<string name="ftue_auth_choose_server_ems_title">Want to host your own server?</string>
<string name="ftue_auth_choose_server_ems_subtitle">Element Matrix Services (EMS) is a robust and reliable hosting service for fast, secure and real time communication. Find out how on element.io.ems</string>
<string name="ftue_auth_choose_server_ems_cta">Get in touch</string>
<string name="ftue_ems_url">https://element.io/ems</string>
</resources>