Skip to content

Commit

Permalink
Fixed typo on DialogData (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico authored and vbuberen committed Jun 26, 2021
1 parent 6547115 commit 9e60559
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package com.chuckerteam.chucker.internal.data.model
internal data class DialogData(
val title: String,
val message: String,
val postiveButtonText: String?,
val positiveButtonText: String?,
val negativeButtonText: String?
)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal fun Context.showDialog(
MaterialAlertDialogBuilder(this)
.setTitle(dialogData.title)
.setMessage(dialogData.message)
.setPositiveButton(dialogData.postiveButtonText) { _, _ ->
.setPositiveButton(dialogData.positiveButtonText) { _, _ ->
onPositiveClick?.invoke()
}
.setNegativeButton(dialogData.negativeButtonText) { _, _ ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ internal class TransactionListFragment :
private fun getClearDialogData(): DialogData = DialogData(
title = getString(R.string.chucker_clear),
message = getString(R.string.chucker_clear_http_confirmation),
postiveButtonText = getString(R.string.chucker_clear),
positiveButtonText = getString(R.string.chucker_clear),
negativeButtonText = getString(R.string.chucker_cancel)
)

private fun getExportDialogData(): DialogData = DialogData(
title = getString(R.string.chucker_export),
message = getString(R.string.chucker_export_http_confirmation),
postiveButtonText = getString(R.string.chucker_export),
positiveButtonText = getString(R.string.chucker_export),
negativeButtonText = getString(R.string.chucker_cancel)
)

Expand Down

0 comments on commit 9e60559

Please sign in to comment.