-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
fix lint error/warnings #23333
fix lint error/warnings #23333
Conversation
Generated by 🚫 dangerJS |
@@ -49,7 +52,7 @@ | |||
|
|||
public ReactTextInputShadowNode() { | |||
mTextBreakStrategy = (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) ? | |||
0 : Layout.BREAK_STRATEGY_SIMPLE; | |||
Layout.BREAK_STRATEGY_SIMPLE : Layout.BREAK_STRATEGY_HIGH_QUALITY; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this change of behavior correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BREAK_STRATEGY_HIGH_QUALITY was introduced in 23 or M, and is a default text breaking strategy. Before that BREAK_STRATEGY_SIMPLE was default, which has value of 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mdvacca is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@dulmandakh merged commit d2fc19f into |
Summary
Fix lint errors and warning, which might be a cause of various crashes on older Android OS, using Android Support Library.
Changelog
[Android] [Changed] - fix lint error/warnings
Test Plan
CI is green