From 3f43bbfc7f4e2f2a884e6eb2d952abf5ffac7b38 Mon Sep 17 00:00:00 2001 From: Natthawut Haematulin Date: Thu, 5 Oct 2023 16:35:21 +0700 Subject: [PATCH] fix: remove hide progress view --- .../java/co/omise/android/ui/AuthorizingPaymentActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/src/main/java/co/omise/android/ui/AuthorizingPaymentActivity.kt b/sdk/src/main/java/co/omise/android/ui/AuthorizingPaymentActivity.kt index b9bec2767..f999b1428 100644 --- a/sdk/src/main/java/co/omise/android/ui/AuthorizingPaymentActivity.kt +++ b/sdk/src/main/java/co/omise/android/ui/AuthorizingPaymentActivity.kt @@ -85,10 +85,10 @@ class AuthorizingPaymentActivity : AppCompatActivity() { } viewModel.isLoading.observe(this) { + // Closing transaction will also hide the progress view. + // So, we only show the progress view. if (it) { viewModel.getTransaction().getProgressView(this).showProgress() - } else { - viewModel.getTransaction().getProgressView(this).hideProgress() } }