Skip to content

Commit

Permalink
Refactor : Minor Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
neeldoshii committed Mar 21, 2024
1 parent a8150d4 commit f174a4d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class CustomStudyDialog(private val collection: Collection, private val customSt
customStudyListener?.showDialogFragment(d)
}
}
}.show()
}.create()
}

@KotlinCleanup("make this use enum instead of Int")
Expand Down Expand Up @@ -280,7 +280,7 @@ class CustomStudyDialog(private val collection: Collection, private val customSt
.negativeButton(R.string.dialog_cancel) {
customStudyListener?.dismissAllDialogFragments()
}
.create()
.create() // Added .create() because we wanted to access alertDialog positive button enable state
editText.addTextChangedListener(object : TextWatcher {
override fun beforeTextChanged(charSequence: CharSequence, i: Int, i1: Int, i2: Int) {}
override fun onTextChanged(charSequence: CharSequence, i: Int, i1: Int, i2: Int) {}
Expand Down

0 comments on commit f174a4d

Please sign in to comment.