mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-18 07:11:58 +03:00
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
2 changed files with 3 additions and 2 deletions
1
changelog.d/8645.misc
Normal file
1
changelog.d/8645.misc
Normal file
|
@ -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 a new issue