diff --git a/changelog.d/8645.misc b/changelog.d/8645.misc new file mode 100644 index 0000000000..afbeb7b19c --- /dev/null +++ b/changelog.d/8645.misc @@ -0,0 +1 @@ +Open external account manager for delete other sessions using Chrome custom tabs. diff --git a/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt b/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt index 2aaf831655..a883d22334 100644 --- a/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt @@ -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 }