Skip to content

Commit 1015b83

Browse files
author
Alex
committed
update input control contract
1 parent c1f5e11 commit 1015b83

File tree

1 file changed

+5
-5
lines changed
  • reactiveviewmodel/src/main/java/com/alexdeww/reactiveviewmodel/widget

1 file changed

+5
-5
lines changed

reactiveviewmodel/src/main/java/com/alexdeww/reactiveviewmodel/widget/InputControl.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ typealias FormatterAction = (text: String) -> String
1414
@SuppressLint("CheckResult")
1515
class InputControl internal constructor(
1616
initialText: String,
17-
formatter: FormatterAction?,
18-
hideErrorOnUserInput: Boolean
17+
hideErrorOnUserInput: Boolean,
18+
formatter: FormatterAction?
1919
) : BaseControl() {
2020

2121
val text = state(initialText)
@@ -38,9 +38,9 @@ class InputControl internal constructor(
3838

3939
fun inputControl(
4040
initialText: String = "",
41-
formatter: FormatterAction? = null,
42-
hideErrorOnUserInput: Boolean = true
43-
): InputControl = InputControl(initialText, formatter, hideErrorOnUserInput)
41+
hideErrorOnUserInput: Boolean = true,
42+
formatter: FormatterAction? = null
43+
): InputControl = InputControl(initialText, hideErrorOnUserInput, formatter)
4444

4545

4646
private val EditText.textChanges: Observable<CharSequence>

0 commit comments

Comments
 (0)