diff --git a/changelog.d/4277.feature b/changelog.d/4277.feature new file mode 100644 index 0000000000..0be1114f22 --- /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 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 c613cf93d5..60f02cb2c6 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(