Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b8f34c5 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

Merge branch '1406-npe' into 'main'

Issue 1406: Prevent NullPointerException in alert dialog

See merge request !330
parents 2000cdff 0b9b1504
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -64,8 +64,8 @@ class ApplicationDialogFragment() : DialogFragment() {
        val positiveButtonText =
            positiveButtonText?.ifEmpty { getString(R.string.ok) }
        val materialAlertDialogBuilder = MaterialAlertDialogBuilder(requireContext())
            .setTitle(Html.fromHtml(title, Html.FROM_HTML_MODE_COMPACT))
            .setMessage(Html.fromHtml(message, Html.FROM_HTML_MODE_COMPACT))
            .setTitle(Html.fromHtml(title ?: "", Html.FROM_HTML_MODE_COMPACT))
            .setMessage(Html.fromHtml(message ?: "", Html.FROM_HTML_MODE_COMPACT))
            .setPositiveButton(positiveButtonText) { _, _ ->
                positiveButtonAction?.invoke()
                this.dismiss()