From d1163e31e904ac59d0739169257a8e3fdc7986a7 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Wed, 17 Aug 2022 15:40:16 -0300 Subject: [wallet] Add ability to cancel/delete transactions --- .../src/main/res/layout/fragment_transaction_payment.xml | 14 +++++++++++++- .../main/res/layout/fragment_transaction_withdrawal.xml | 14 +++++++++++++- wallet/src/main/res/values/strings.xml | 3 +++ 3 files changed, 29 insertions(+), 2 deletions(-) (limited to 'wallet/src/main/res') diff --git a/wallet/src/main/res/layout/fragment_transaction_payment.xml b/wallet/src/main/res/layout/fragment_transaction_payment.xml index 20ba161..32aa6ed 100644 --- a/wallet/src/main/res/layout/fragment_transaction_payment.xml +++ b/wallet/src/main/res/layout/fragment_transaction_payment.xml @@ -116,11 +116,23 @@ style="@style/TransactionLabel" android:layout_marginBottom="16dp" android:text="@string/transaction_order_id" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toTopOf="@+id/deleteButton" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/orderSummaryView" /> + + diff --git a/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml b/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml index 8fe3247..78d1667 100644 --- a/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml +++ b/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml @@ -117,12 +117,24 @@ + + diff --git a/wallet/src/main/res/values/strings.xml b/wallet/src/main/res/values/strings.xml index efaa7dd..d1a0c78 100644 --- a/wallet/src/main/res/values/strings.xml +++ b/wallet/src/main/res/values/strings.xml @@ -77,6 +77,9 @@ GNU Taler is immune against many types of fraud, such as phishing of credit card Balance: %s Delete Select All + Delete Transaction + Are you sure you want to remove this transaction from your wallet? + Are you sure you want to cancel this withdrawal? Funds still in transit might get lost. Paid -- cgit v1.2.3