Merge code

This commit is contained in:
2022-05-30 02:02:22 +08:00
parent a461010b56
commit f908a03311

View File

@@ -42,9 +42,9 @@ import com.google.android.material.shape.MaterialShapeDrawable
/**
* 构造对话框
* @param it 对话框方法体
* @param initiate 对话框方法体
*/
fun Context.showDialog(it: DialogBuilder.() -> Unit) = DialogBuilder(this).apply(it).show()
fun Context.showDialog(initiate: DialogBuilder.() -> Unit) = DialogBuilder(context = this).apply(initiate).show()
/**
* 对话框构造器