From 87b6ee6678e40b81513557a5026b302ae8835d72 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Sat, 7 Jan 2023 12:09:29 -0600 Subject: [wallet] Fix order of buttons for cancel dialog --- .../java/net/taler/wallet/transactions/TransactionDetailFragment.kt | 2 +- .../src/main/java/net/taler/wallet/transactions/TransactionsFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'wallet') diff --git a/wallet/src/main/java/net/taler/wallet/transactions/TransactionDetailFragment.kt b/wallet/src/main/java/net/taler/wallet/transactions/TransactionDetailFragment.kt index eef2fd3..94b9774 100644 --- a/wallet/src/main/java/net/taler/wallet/transactions/TransactionDetailFragment.kt +++ b/wallet/src/main/java/net/taler/wallet/transactions/TransactionDetailFragment.kt @@ -102,7 +102,7 @@ abstract class TransactionDetailFragment : Fragment() { AlertDialog.Builder(requireContext(), R.style.DialogTheme) .setTitle(deleteDialogTitle) .setMessage(deleteDialogMessage) - .setPositiveButton(R.string.cancel) { dialog, _ -> + .setNeutralButton(R.string.cancel) { dialog, _ -> dialog.cancel() } .setNegativeButton(deleteDialogButton) { dialog, _ -> diff --git a/wallet/src/main/java/net/taler/wallet/transactions/TransactionsFragment.kt b/wallet/src/main/java/net/taler/wallet/transactions/TransactionsFragment.kt index 1926217..e0344b3 100644 --- a/wallet/src/main/java/net/taler/wallet/transactions/TransactionsFragment.kt +++ b/wallet/src/main/java/net/taler/wallet/transactions/TransactionsFragment.kt @@ -232,7 +232,7 @@ class TransactionsFragment : Fragment(), OnTransactionClickListener, ActionMode. AlertDialog.Builder(requireContext(), R.style.DialogTheme) .setTitle(deleteDialogTitle) .setMessage(deleteDialogMessage) - .setPositiveButton(R.string.cancel) { dialog, _ -> + .setNeutralButton(R.string.cancel) { dialog, _ -> dialog.cancel() } .setNegativeButton(deleteDialogButton) { dialog, _ -> -- cgit v1.2.3