Skip to content

Commit b3087a2

Browse files
committed
specify param types explicitly in constructor
1 parent 116526c commit b3087a2

File tree

1 file changed

+2
-3
lines changed
  • aztec/src/main/kotlin/org/wordpress/aztec

1 file changed

+2
-3
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/Aztec.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ 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),
36-
activity.findViewById(sourceTextId), activity.findViewById(toolbarId), toolbarClickListener)
37-
35+
toolbarClickListener: IAztecToolbarClickListener) : this(activity.findViewById(aztecTextId) as AztecText,
36+
activity.findViewById(sourceTextId) as SourceViewEditText, activity.findViewById(toolbarId) as AztecToolbar, toolbarClickListener)
3837

3938
private constructor(activity: Activity, @IdRes aztecTextId: Int,
4039
@IdRes toolbarId: Int,

0 commit comments

Comments
 (0)