Skip to content
This repository was archived by the owner on Dec 16, 2023. It is now read-only.

Commit d8c6dc1

Browse files
committed
Fix change payment method button being visible when order is paid
1 parent 5eda5e7 commit d8c6dc1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/src/main/java/com/marknkamau/justjava/ui/orderDetail/OrderDetailActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class OrderDetailActivity : AppCompatActivity() {
8383
if (orderId == orderId) {
8484
Timber.d("The current order has been paid for!")
8585
btnPayOrder.visibility = View.GONE
86+
btnChangePaymentMethod.visibility = View.GONE
8687
tv_order_paymentStatus.text = PaymentStatus.PAID.s
8788
toast("Payment received")
8889
}

0 commit comments

Comments
 (0)