diff options
| author | 2024-02-12 16:54:46 -0500 | |
|---|---|---|
| committer | 2024-02-12 16:54:46 -0500 | |
| commit | 836592c447814efd8b743a3b310a075cd7fca3fd (patch) | |
| tree | 8fe04b4e4538143b77fc7ff5aff2ce0d5a699ed5 /src | |
| parent | android: Extend MessageDialogFragment to support a negative action and button... (diff) | |
| download | yuzu-836592c447814efd8b743a3b310a075cd7fca3fd.tar.gz yuzu-836592c447814efd8b743a3b310a075cd7fca3fd.tar.xz yuzu-836592c447814efd8b743a3b310a075cd7fca3fd.zip | |
android: Swap confirmation buttons for delete save data dialog
Diffstat (limited to 'src')
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/GamePropertiesFragment.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/GamePropertiesFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/GamePropertiesFragment.kt index d14b2c634..3ea5e16ca 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/GamePropertiesFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/GamePropertiesFragment.kt | |||
| @@ -243,7 +243,9 @@ class GamePropertiesFragment : Fragment() { | |||
| 243 | requireActivity(), | 243 | requireActivity(), |
| 244 | titleId = R.string.delete_save_data, | 244 | titleId = R.string.delete_save_data, |
| 245 | descriptionId = R.string.delete_save_data_warning_description, | 245 | descriptionId = R.string.delete_save_data_warning_description, |
| 246 | positiveAction = { | 246 | positiveButtonTitleId = android.R.string.cancel, |
| 247 | negativeButtonTitleId = android.R.string.ok, | ||
| 248 | negativeAction = { | ||
| 247 | File(args.game.saveDir).deleteRecursively() | 249 | File(args.game.saveDir).deleteRecursively() |
| 248 | Toast.makeText( | 250 | Toast.makeText( |
| 249 | YuzuApplication.appContext, | 251 | YuzuApplication.appContext, |