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() } }