Merge pull request #8645 from vector-im/hughns/oidc-device-logout-in-chrome-tab
Open OIDC account management URL in chrome tab
This commit is contained in:
commit
1b3be240b3
|
@ -0,0 +1 @@
|
|||
Open external account manager for delete other sessions using Chrome custom tabs.
|
|
@ -49,7 +49,7 @@ import im.vector.app.core.preference.VectorPreferenceCategory
|
|||
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
|
||||
|
@ -225,7 +225,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 New Issue