Title or not, platform default

This commit is contained in:
Mygod
2019-01-06 00:45:15 +08:00
parent d3d066e037
commit 9c0bbf71f6
3 changed files with 5 additions and 9 deletions

View File

@@ -14,10 +14,6 @@ abstract class AlertDialogFragment : DialogFragment(), DialogInterface.OnClickLi
protected abstract fun AlertDialog.Builder.prepare(listener: DialogInterface.OnClickListener)
open val data: Intent? get() = null
init {
setStyle(STYLE_NO_TITLE, 0)
}
override fun onCreateDialog(savedInstanceState: Bundle?): AlertDialog =
AlertDialog.Builder(requireContext()).also { it.prepare(this) }.create()