Update link to Modular url from "https://modular.im/" to "https://modular.im/services/matrix-hosting-riot" and open it using ChromeCustomTab

This commit is contained in:
Benoit Marty 2020-06-10 09:13:08 +02:00
parent 0a7f77ea16
commit c35c94b7b7
4 changed files with 9 additions and 5 deletions

View File

@ -33,6 +33,7 @@ Build 🧱:
Other changes:
- Send plain text in the body of events containing formatted body, as per https://matrix.org/docs/spec/client_server/latest#m-room-message-msgtypes
- Update link to Modular url from "https://modular.im/" to "https://modular.im/services/matrix-hosting-riot" and open it using ChromeCustomTab
Changes in RiotX 0.21.0 (2020-05-28)
===================================================

View File

@ -16,4 +16,7 @@
package im.vector.riotx.features.login
const val MODULAR_LINK = "https://modular.im/?utm_source=riot-x-android&utm_medium=native&utm_campaign=riot-x-android-authentication"
const val MODULAR_LINK = "https://modular.im/services/matrix-hosting-riot" +
"?utm_source=riot-x-android" +
"&utm_medium=native" +
"&utm_campaign=riot-x-android-authentication"

View File

@ -21,7 +21,7 @@ import android.view.View
import butterknife.OnClick
import com.airbnb.mvrx.withState
import im.vector.riotx.R
import im.vector.riotx.core.utils.openUrlInExternalBrowser
import im.vector.riotx.core.utils.openUrlInChromeCustomTab
import kotlinx.android.synthetic.main.fragment_login_server_selection.*
import me.gujun.android.span.span
import javax.inject.Inject
@ -56,7 +56,7 @@ class LoginServerSelectionFragment @Inject constructor() : AbstractLoginFragment
@OnClick(R.id.loginServerChoiceModularLearnMore)
fun learnMore() {
openUrlInExternalBrowser(requireActivity(), MODULAR_LINK)
openUrlInChromeCustomTab(requireActivity(), null, MODULAR_LINK)
}
@OnClick(R.id.loginServerChoiceMatrixOrg)

View File

@ -26,7 +26,7 @@ import com.jakewharton.rxbinding3.widget.textChanges
import im.vector.riotx.R
import im.vector.riotx.core.extensions.hideKeyboard
import im.vector.riotx.core.utils.ensureProtocol
import im.vector.riotx.core.utils.openUrlInExternalBrowser
import im.vector.riotx.core.utils.openUrlInChromeCustomTab
import kotlinx.android.synthetic.main.fragment_login_server_url_form.*
import javax.inject.Inject
@ -84,7 +84,7 @@ class LoginServerUrlFormFragment @Inject constructor() : AbstractLoginFragment()
@OnClick(R.id.loginServerUrlFormLearnMore)
fun learnMore() {
openUrlInExternalBrowser(requireActivity(), MODULAR_LINK)
openUrlInChromeCustomTab(requireActivity(), null, MODULAR_LINK)
}
override fun resetViewModel() {