mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
android: Swap ok and close default strings for MessageDialogFragment
This commit is contained in:
parent
95d96cfe66
commit
86fc1e5b32
@ -42,9 +42,9 @@ class MessageDialogFragment : DialogFragment() {
|
|||||||
} else if (positiveButtonString.isNotEmpty()) {
|
} else if (positiveButtonString.isNotEmpty()) {
|
||||||
positiveButtonString
|
positiveButtonString
|
||||||
} else if (messageDialogViewModel.positiveAction != null) {
|
} else if (messageDialogViewModel.positiveAction != null) {
|
||||||
getString(R.string.close)
|
|
||||||
} else {
|
|
||||||
getString(android.R.string.ok)
|
getString(android.R.string.ok)
|
||||||
|
} else {
|
||||||
|
getString(R.string.close)
|
||||||
}
|
}
|
||||||
|
|
||||||
val negativeButtonId = requireArguments().getInt(NEGATIVE_BUTTON_TITLE_ID)
|
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.
|
* @param positiveButtonTitleId String resource ID that will be used for the positive button.
|
||||||
* [positiveButtonTitleString] used if 0.
|
* [positiveButtonTitleString] used if 0.
|
||||||
* @param positiveButtonTitleString String that will be used for the positive button.
|
* @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.
|
* is not null.
|
||||||
* @param positiveAction Lambda to run when the positive button is clicked.
|
* @param positiveAction Lambda to run when the positive button is clicked.
|
||||||
* @param showNegativeButton Normally the negative button isn't shown if there is no
|
* @param showNegativeButton Normally the negative button isn't shown if there is no
|
||||||
|
Loading…
Reference in New Issue
Block a user