Fix lint
This commit is contained in:
@@ -23,7 +23,7 @@ abstract class AlertDialogFragment<Arg : Parcelable, Ret : Parcelable> :
|
||||
}
|
||||
protected abstract fun AlertDialog.Builder.prepare(listener: DialogInterface.OnClickListener)
|
||||
|
||||
protected val arg by lazy { arguments!!.getParcelable<Arg>(KEY_ARG)!! }
|
||||
protected val arg by lazy { requireArguments().getParcelable<Arg>(KEY_ARG)!! }
|
||||
protected open val ret: Ret? get() = null
|
||||
fun withArg(arg: Arg) = apply { arguments = Bundle().apply { putParcelable(KEY_ARG, arg) } }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user