Skip to content

Commit

Permalink
Merge pull request #8645 from vector-im/hughns/oidc-device-logout-in-…
Browse files Browse the repository at this point in the history
…chrome-tab

Open OIDC account management URL in chrome tab
  • Loading branch information
bmarty authored Sep 14, 2023
2 parents 8c1cc44 + 3f2f386 commit 1b3be24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/8645.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Open external account manager for delete other sessions using Chrome custom tabs.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 1b3be24

Please sign in to comment.