diff options
| author | 2024-02-13 13:45:17 -0500 | |
|---|---|---|
| committer | 2024-02-13 13:45:17 -0500 | |
| commit | 10ba318807c673fd3b0e624015c184d770cdc966 (patch) | |
| tree | 8345083f537899dd55d0406a98f6c573202ce270 | |
| parent | android: Swap ok and close default strings for MessageDialogFragment (diff) | |
| download | yuzu-10ba318807c673fd3b0e624015c184d770cdc966.tar.gz yuzu-10ba318807c673fd3b0e624015c184d770cdc966.tar.xz yuzu-10ba318807c673fd3b0e624015c184d770cdc966.zip | |
android: Show cancel option for delete addons dialog
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt index f5647fa95..ae09d5006 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt | |||
| @@ -119,7 +119,8 @@ class AddonsFragment : Fragment() { | |||
| 119 | requireActivity(), | 119 | requireActivity(), |
| 120 | titleId = R.string.confirm_uninstall, | 120 | titleId = R.string.confirm_uninstall, |
| 121 | descriptionId = R.string.confirm_uninstall_description, | 121 | descriptionId = R.string.confirm_uninstall_description, |
| 122 | positiveAction = { addonViewModel.onDeleteAddon(it) } | 122 | positiveAction = { addonViewModel.onDeleteAddon(it) }, |
| 123 | negativeAction = {} | ||
| 123 | ).show(parentFragmentManager, MessageDialogFragment.TAG) | 124 | ).show(parentFragmentManager, MessageDialogFragment.TAG) |
| 124 | addonViewModel.setAddonToDelete(null) | 125 | addonViewModel.setAddonToDelete(null) |
| 125 | } | 126 | } |