Commit fd808bd5 authored by topjohnwu's avatar topjohnwu

Use the correct handler

parent b4e8860e
......@@ -123,7 +123,7 @@ class CheckSafetyNetEvent(
titleRes = android.R.string.cancel
onClick { callback(SafetyNetResult(dismiss = true)) }
}
.onDismiss {
.onCancel {
callback(SafetyNetResult(dismiss = true))
}
.reveal()
......
......@@ -254,6 +254,9 @@ class MagiskDialog(
)
}
fun onCancel(callback: OnDialogButtonClickListener) =
apply { setOnCancelListener(callback) }
fun onDismiss(callback: OnDialogButtonClickListener) =
apply { setOnDismissListener(callback) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment