From 09b241ba6775182d657c3f126a251029aeda346c Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 5 Jun 2023 11:11:59 +0930 Subject: [PATCH] Fix dialog#view(layoutRes) --- .../java/org/thoughtcrime/securesms/SessionDialogBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/SessionDialogBuilder.kt b/app/src/main/java/org/thoughtcrime/securesms/SessionDialogBuilder.kt index 96bc32f14e..141a98e4ac 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/SessionDialogBuilder.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/SessionDialogBuilder.kt @@ -77,7 +77,7 @@ class SessionDialogBuilder(val context: Context) { fun view(view: View) = contentView.addView(view) - fun view(@LayoutRes layout: Int) = contentView.addView(LayoutInflater.from(context).inflate(layout, contentView)) + fun view(@LayoutRes layout: Int): View = LayoutInflater.from(context).inflate(layout, contentView) fun iconAttribute(@AttrRes icon: Int): AlertDialog.Builder = dialogBuilder.setIconAttribute(icon)