mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 03:48:12 +03:00
Open OIDC account management URL in chrome tab
Not the external browser
This commit is contained in:
parent
ff548d2f98
commit
470557c59e
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ import im.vector.app.core.preference.VectorPreference
|
|||
import im.vector.app.core.preference.VectorSwitchPreference
|
||||
import im.vector.app.core.utils.TextUtils
|
||||
import im.vector.app.core.utils.getSizeOfFiles
|
||||
import im.vector.app.core.utils.openUrlInExternalBrowser
|
||||
import im.vector.app.core.utils.openUrlInChromeCustomTab
|
||||
import im.vector.app.core.utils.toast
|
||||
import im.vector.app.databinding.DialogChangePasswordBinding
|
||||
import im.vector.app.features.MainActivity
|
||||
|
@ -221,7 +221,7 @@ class VectorSettingsGeneralFragment :
|
|||
// Hide the preference if no URL is given by server
|
||||
if (homeServerCapabilities.externalAccountManagementUrl != null) {
|
||||
mExternalAccountManagementPreference.onPreferenceClickListener = Preference.OnPreferenceClickListener {
|
||||
openUrlInExternalBrowser(it.context, homeServerCapabilities.externalAccountManagementUrl)
|
||||
openUrlInChromeCustomTab(it.context, null, homeServerCapabilities.externalAccountManagementUrl!!)
|
||||
true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue