diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/dialogs/customstudy/CustomStudyDialog.kt b/AnkiDroid/src/main/java/com/ichi2/anki/dialogs/customstudy/CustomStudyDialog.kt index af5b572c5f1a..a23a4385ce09 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/dialogs/customstudy/CustomStudyDialog.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/dialogs/customstudy/CustomStudyDialog.kt @@ -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") @@ -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) {}