Skip to content

Commit

Permalink
Rename variable to binding
Browse files Browse the repository at this point in the history
  • Loading branch information
naveensingh committed Sep 12, 2024
1 parent 0517240 commit c144de7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ class SecurityDialog(
private val callback: (hash: String, type: Int, success: Boolean) -> Unit
) : HashListener {
private var dialog: AlertDialog? = null
private val view = DialogSecurityBinding.inflate(LayoutInflater.from(activity), null, false)
private val binding = DialogSecurityBinding.inflate(LayoutInflater.from(activity), null, false)
private var tabsAdapter: PasswordTypesAdapter
private var viewPager: MyDialogViewPager

init {
view.apply {
binding.apply {
viewPager = dialogTabViewPager
viewPager.offscreenPageLimit = 2
tabsAdapter = PasswordTypesAdapter(
Expand Down Expand Up @@ -81,7 +81,7 @@ class SecurityDialog(
.setOnCancelListener { onCancelFail() }
.setNegativeButton(R.string.cancel) { _, _ -> onCancelFail() }
.apply {
activity.setupDialogStuff(view.root, this) { alertDialog ->
activity.setupDialogStuff(binding.root, this) { alertDialog ->
dialog = alertDialog
}
}
Expand Down

0 comments on commit c144de7

Please sign in to comment.