Merge pull request #1467 from vector-im/feature/modular_link
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:
commit
ed27c35bb4
|
@ -33,6 +33,7 @@ Build 🧱:
|
||||||
|
|
||||||
Other changes:
|
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
|
- 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)
|
Changes in RiotX 0.21.0 (2020-05-28)
|
||||||
===================================================
|
===================================================
|
||||||
|
|
|
@ -16,4 +16,7 @@
|
||||||
|
|
||||||
package im.vector.riotx.features.login
|
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"
|
||||||
|
|
|
@ -21,7 +21,7 @@ import android.view.View
|
||||||
import butterknife.OnClick
|
import butterknife.OnClick
|
||||||
import com.airbnb.mvrx.withState
|
import com.airbnb.mvrx.withState
|
||||||
import im.vector.riotx.R
|
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 kotlinx.android.synthetic.main.fragment_login_server_selection.*
|
||||||
import me.gujun.android.span.span
|
import me.gujun.android.span.span
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
@ -56,7 +56,7 @@ class LoginServerSelectionFragment @Inject constructor() : AbstractLoginFragment
|
||||||
|
|
||||||
@OnClick(R.id.loginServerChoiceModularLearnMore)
|
@OnClick(R.id.loginServerChoiceModularLearnMore)
|
||||||
fun learnMore() {
|
fun learnMore() {
|
||||||
openUrlInExternalBrowser(requireActivity(), MODULAR_LINK)
|
openUrlInChromeCustomTab(requireActivity(), null, MODULAR_LINK)
|
||||||
}
|
}
|
||||||
|
|
||||||
@OnClick(R.id.loginServerChoiceMatrixOrg)
|
@OnClick(R.id.loginServerChoiceMatrixOrg)
|
||||||
|
|
|
@ -26,7 +26,7 @@ import com.jakewharton.rxbinding3.widget.textChanges
|
||||||
import im.vector.riotx.R
|
import im.vector.riotx.R
|
||||||
import im.vector.riotx.core.extensions.hideKeyboard
|
import im.vector.riotx.core.extensions.hideKeyboard
|
||||||
import im.vector.riotx.core.utils.ensureProtocol
|
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 kotlinx.android.synthetic.main.fragment_login_server_url_form.*
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ class LoginServerUrlFormFragment @Inject constructor() : AbstractLoginFragment()
|
||||||
|
|
||||||
@OnClick(R.id.loginServerUrlFormLearnMore)
|
@OnClick(R.id.loginServerUrlFormLearnMore)
|
||||||
fun learnMore() {
|
fun learnMore() {
|
||||||
openUrlInExternalBrowser(requireActivity(), MODULAR_LINK)
|
openUrlInChromeCustomTab(requireActivity(), null, MODULAR_LINK)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun resetViewModel() {
|
override fun resetViewModel() {
|
||||||
|
|
Loading…
Reference in New Issue