@@ -32,13 +32,13 @@ open class Aztec private constructor(val visualEditor: AztecText, val toolbar: A
3232
3333 private constructor (activity: Activity , @IdRes aztecTextId: Int ,
3434 @IdRes sourceTextId: Int , @IdRes toolbarId: Int ,
35- toolbarClickListener: IAztecToolbarClickListener ) : this (activity.findViewById(aztecTextId) as AztecText ,
36- activity.findViewById(sourceTextId) as SourceViewEditText , activity.findViewById(toolbarId) as AztecToolbar , toolbarClickListener)
35+ toolbarClickListener: IAztecToolbarClickListener ) : this (activity.findViewById< AztecText > (aztecTextId),
36+ activity.findViewById< SourceViewEditText > (sourceTextId), activity.findViewById< AztecToolbar > (toolbarId), toolbarClickListener)
3737
3838 private constructor (activity: Activity , @IdRes aztecTextId: Int ,
3939 @IdRes toolbarId: Int ,
40- toolbarClickListener: IAztecToolbarClickListener ) : this (activity.findViewById(aztecTextId) as AztecText ,
41- activity.findViewById(toolbarId) as AztecToolbar , toolbarClickListener)
40+ toolbarClickListener: IAztecToolbarClickListener ) : this (activity.findViewById< AztecText > (aztecTextId),
41+ activity.findViewById< AztecToolbar > (toolbarId), toolbarClickListener)
4242
4343 private constructor (visualEditor: AztecText , sourceEditor: SourceViewEditText ,
4444 toolbar: AztecToolbar , toolbarClickListener: IAztecToolbarClickListener ) : this (visualEditor, toolbar, toolbarClickListener) {
0 commit comments