We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a563a3 commit 167e9b1Copy full SHA for 167e9b1
AnkiDroid/src/test/java/com/ichi2/anki/dialogs/utils/AlertDialogUtils.kt
@@ -38,6 +38,12 @@ val AlertDialog.title
38
"androidx.appcompat.R.id.alertTitle not found"
39
}.text.toString()
40
41
+val AlertDialog.message
42
+ get() =
43
+ requireNotNull(this.findViewById<TextView>(android.R.id.message)) {
44
+ "android.R.id.message not found"
45
+ }.text.toString()
46
+
47
fun AlertDialog.performPositiveClick() {
48
// This exists as callOnClick did not call the listener
49
val positiveButton = assertNotNull(getButton(DialogInterface.BUTTON_POSITIVE), message = "positive button")
0 commit comments