Fix dialog#view(layoutRes)

This commit is contained in:
andrew 2023-06-05 11:11:59 +09:30
parent 94b48d5fb9
commit 09b241ba67

View File

@ -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)