From c09f7e0d7d722b6f42ab2ef05ae1d456094c1021 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 29 Apr 2021 16:10:52 +0200 Subject: [PATCH] Fix compilation issue after rebase --- .../im/vector/app/features/login2/AbstractLoginFragment2.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/login2/AbstractLoginFragment2.kt b/vector/src/main/java/im/vector/app/features/login2/AbstractLoginFragment2.kt index 266e69e5b1..39bee00ac2 100644 --- a/vector/src/main/java/im/vector/app/features/login2/AbstractLoginFragment2.kt +++ b/vector/src/main/java/im/vector/app/features/login2/AbstractLoginFragment2.kt @@ -29,6 +29,7 @@ import im.vector.app.core.dialogs.UnrecognizedCertificateDialog import im.vector.app.core.extensions.exhaustive import im.vector.app.core.platform.OnBackPressed import im.vector.app.core.platform.VectorBaseFragment +import kotlinx.coroutines.CancellationException import org.matrix.android.sdk.api.failure.Failure /** @@ -74,7 +75,7 @@ abstract class AbstractLoginFragment2 : VectorBaseFragment } when (throwable) { - is Failure.Cancelled -> + is CancellationException -> /* Ignore this error, user has cancelled the action */ Unit is Failure.UnrecognizedCertificateFailure ->