From e83bdc3779f5bd56245b8144b0b7893c4295422a Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Fri, 14 Oct 2022 17:46:14 +0300 Subject: [PATCH] Use correct homeserver url to check qr code login support. --- .../im/vector/app/features/login/qr/QrCodeLoginActivity.kt | 3 ++- .../app/features/login/qr/QrCodeLoginShowQrCodeFragment.kt | 2 +- .../app/features/login/qr/QrCodeLoginStatusFragment.kt | 2 +- .../vector/app/features/onboarding/OnboardingViewModel.kt | 7 +++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/login/qr/QrCodeLoginActivity.kt b/vector/src/main/java/im/vector/app/features/login/qr/QrCodeLoginActivity.kt index 042f885231..29190a70cb 100644 --- a/vector/src/main/java/im/vector/app/features/login/qr/QrCodeLoginActivity.kt +++ b/vector/src/main/java/im/vector/app/features/login/qr/QrCodeLoginActivity.kt @@ -25,6 +25,7 @@ import com.airbnb.mvrx.viewModel import dagger.hilt.android.AndroidEntryPoint import im.vector.app.core.extensions.addFragment import im.vector.app.core.platform.SimpleFragmentActivity +import im.vector.lib.core.utils.compat.getParcelableCompat import org.matrix.android.sdk.api.extensions.orFalse import timber.log.Timber @@ -37,7 +38,7 @@ class QrCodeLoginActivity : SimpleFragmentActivity() { super.onCreate(savedInstanceState) views.toolbar.visibility = View.GONE - val qrCodeLoginArgs: QrCodeLoginArgs? = intent?.extras?.getParcelable(Mavericks.KEY_ARG) + val qrCodeLoginArgs: QrCodeLoginArgs? = intent?.extras?.getParcelableCompat(Mavericks.KEY_ARG) if (isFirstCreation()) { when (qrCodeLoginArgs?.loginType) { QrCodeLoginType.LOGIN -> { diff --git a/vector/src/main/java/im/vector/app/features/login/qr/QrCodeLoginShowQrCodeFragment.kt b/vector/src/main/java/im/vector/app/features/login/qr/QrCodeLoginShowQrCodeFragment.kt index 1c68ebb2a5..efc2c9dd08 100644 --- a/vector/src/main/java/im/vector/app/features/login/qr/QrCodeLoginShowQrCodeFragment.kt +++ b/vector/src/main/java/im/vector/app/features/login/qr/QrCodeLoginShowQrCodeFragment.kt @@ -44,7 +44,7 @@ class QrCodeLoginShowQrCodeFragment : VectorBaseFragment