diff options
author | Iván Ávalos <avalos@disroot.org> | 2023-01-07 12:09:29 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2023-01-07 12:09:29 -0600 |
commit | 87b6ee6678e40b81513557a5026b302ae8835d72 (patch) | |
tree | bd29501f260051c7415c89f91a5ca81afa45d7bb /wallet | |
parent | fa73257002ddf6b3e5aa3b8945fab78ce3ec0525 (diff) | |
download | taler-android-87b6ee6678e40b81513557a5026b302ae8835d72.tar.gz taler-android-87b6ee6678e40b81513557a5026b302ae8835d72.tar.bz2 taler-android-87b6ee6678e40b81513557a5026b302ae8835d72.zip |
[wallet] Fix order of buttons for cancel dialogbug-7479
Diffstat (limited to 'wallet')
-rw-r--r-- | wallet/src/main/java/net/taler/wallet/transactions/TransactionDetailFragment.kt | 2 | ||||
-rw-r--r-- | wallet/src/main/java/net/taler/wallet/transactions/TransactionsFragment.kt | 2 |
2 files changed, 2 insertions, 2 deletions
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, _ -> |