summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2024-02-13 19:44:35 +0100
committert895 <clombardo169@gmail.com>2024-02-13 19:44:35 +0100
commit86fc1e5b3230621f82a0a0c4813c6da1e537e036 (patch)
tree57d067ecdfeeb09fdefffc1125996254d6d1c71f
parentMerge pull request #12974 from german77/ldn-interface (diff)
downloadyuzu-86fc1e5b3230621f82a0a0c4813c6da1e537e036.tar
yuzu-86fc1e5b3230621f82a0a0c4813c6da1e537e036.tar.gz
yuzu-86fc1e5b3230621f82a0a0c4813c6da1e537e036.tar.bz2
yuzu-86fc1e5b3230621f82a0a0c4813c6da1e537e036.tar.lz
yuzu-86fc1e5b3230621f82a0a0c4813c6da1e537e036.tar.xz
yuzu-86fc1e5b3230621f82a0a0c4813c6da1e537e036.tar.zst
yuzu-86fc1e5b3230621f82a0a0c4813c6da1e537e036.zip
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/MessageDialogFragment.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/MessageDialogFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/MessageDialogFragment.kt
index 685df0d59..c370964e1 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/MessageDialogFragment.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/MessageDialogFragment.kt
@@ -42,9 +42,9 @@ class MessageDialogFragment : DialogFragment() {
} else if (positiveButtonString.isNotEmpty()) {
positiveButtonString
} else if (messageDialogViewModel.positiveAction != null) {
- getString(R.string.close)
- } else {
getString(android.R.string.ok)
+ } else {
+ getString(R.string.close)
}
val negativeButtonId = requireArguments().getInt(NEGATIVE_BUTTON_TITLE_ID)
@@ -131,7 +131,7 @@ class MessageDialogFragment : DialogFragment() {
* @param positiveButtonTitleId String resource ID that will be used for the positive button.
* [positiveButtonTitleString] used if 0.
* @param positiveButtonTitleString String that will be used for the positive button.
- * android.R.string.ok used if empty. android.R.string.close will be used if [positiveAction]
+ * android.R.string.close used if empty. android.R.string.ok will be used if [positiveAction]
* is not null.
* @param positiveAction Lambda to run when the positive button is clicked.
* @param showNegativeButton Normally the negative button isn't shown if there is no