Skip to content

Commit

Permalink
fix:removed redundency/ui enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiThanushreddy committed Sep 17, 2023
1 parent 8f74741 commit 5a8a854
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,10 @@ class RegistrationActivity : BaseActivity() {
MaterialDialog.Builder().init(this)
.setTitle(getString(R.string.dialog_cancel_registration_title))
.setMessage(getString(R.string.dialog_cancel_registration_message))
.setPositiveButton(
getString(R.string.cancel),
DialogInterface.OnClickListener { _, _ -> super.onBackPressed() },
)
.setNegativeButton(
R.string.continue_str,
DialogInterface.OnClickListener { dialog, _ -> dialog.dismiss() },
)
.setPositiveButton(getString(R.string.yes)) { _, _ -> super.onBackPressed() }
.setNegativeButton(R.string.no) { dialog, _ -> dialog.dismiss() }
.createMaterialDialog()
.show()
}

}

0 comments on commit 5a8a854

Please sign in to comment.