From 1c9f1808baa84e9a75b336ae925a2267ace3bada Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Mon, 1 Nov 2021 12:13:50 +0000 Subject: [PATCH 1/2] sorting the social providers by their defined priority --- .../src/main/java/im/vector/app/features/login/LoginFragment.kt | 2 +- .../app/features/login/LoginSignUpSignInSelectionFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/login/LoginFragment.kt b/vector/src/main/java/im/vector/app/features/login/LoginFragment.kt index c613cf93d50..60f02cb2c61 100644 --- a/vector/src/main/java/im/vector/app/features/login/LoginFragment.kt +++ b/vector/src/main/java/im/vector/app/features/login/LoginFragment.kt @@ -193,7 +193,7 @@ class LoginFragment @Inject constructor() : AbstractSSOLoginFragment { views.loginSignupSigninSignInSocialLoginContainer.isVisible = true - views.loginSignupSigninSocialLoginButtons.ssoIdentityProviders = state.loginMode.ssoIdentityProviders() + views.loginSignupSigninSocialLoginButtons.ssoIdentityProviders = state.loginMode.ssoIdentityProviders()?.sorted() views.loginSignupSigninSocialLoginButtons.listener = object : SocialLoginButtonsView.InteractionListener { override fun onProviderSelected(id: String?) { loginViewModel.getSsoUrl( From c261340939758d10f999776d181dbaf6108b072d Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Mon, 1 Nov 2021 12:38:42 +0000 Subject: [PATCH 2/2] adding changelog entry --- changelog.d/4277.feature | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/4277.feature diff --git a/changelog.d/4277.feature b/changelog.d/4277.feature new file mode 100644 index 00000000000..0be1114f22d --- /dev/null +++ b/changelog.d/4277.feature @@ -0,0 +1 @@ +Updating single sign on providers ordering to match priority/popularity \ No newline at end of file