Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add minLines to the BasicTextiField.destkop #469

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

igordmn
Copy link
Collaborator

@igordmn igordmn commented Mar 31, 2023

Same as here: https://android-review.googlesource.com/c/platform/frameworks/support/+/2237754

We don't need to support binary compatibility for this function, as it is experimental.

Same as here: https://android-review.googlesource.com/c/platform/frameworks/support/+/2237754

We don't need to support binary compatibility for this function, as it is experimental
@igordmn igordmn requested a review from m-sasha March 31, 2023 08:40
@@ -133,7 +134,8 @@ fun BasicTextField(
keyboardOptions: KeyboardOptions = KeyboardOptions.Default,
keyboardActions: KeyboardActions = KeyboardActions.Default,
singleLine: Boolean = false,
maxLines: Int = Int.MAX_VALUE,
maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can just be maxLines: Int = Int.MAX_VALUE because if singleLine it's ignored below anyway.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to keep the same code as in the original text field, to simplify future copy-pastes

@@ -281,7 +285,8 @@ fun BasicTextField(
keyboardOptions: KeyboardOptions = KeyboardOptions.Default,
keyboardActions: KeyboardActions = KeyboardActions.Default,
singleLine: Boolean = false,
maxLines: Int = Int.MAX_VALUE,
maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likewise.

@igordmn igordmn merged commit 248c550 into jb-main Apr 3, 2023
@igordmn igordmn deleted the igor.demin/add-new-param-to-our-textifield branch April 3, 2023 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants