Skip to content

Commit

Permalink
review: comment contents
Browse files Browse the repository at this point in the history
  • Loading branch information
importRyan committed Dec 19, 2024
1 parent 4229674 commit c4e7b73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,9 @@ - (NSString*)textInRange:(UITextRange*)range {
if (textRange.location == NSNotFound) {
// Avoids [crashes](https://github.com/flutter/flutter/issues/138464) from an assertion
// against NSNotFound.
// TODO(hellohuanlin): root cause https://github.com/flutter/flutter/issues/160100
// TODO(hellohuanlin): This is a temp workaround, but we should look into why
// framework is providing NSNotFound to the engine.
// https://github.com/flutter/flutter/issues/160100
return nil;
}
// Sanitize the range to prevent going out of bounds.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ - (NSString*)textInRange:(UITextRange*)range {
if (textRange.location == NSNotFound) {
// Avoids [crashes](https://github.com/flutter/flutter/issues/138464) from an assertion
// against NSNotFound.
// TODO(hellohuanlin): https://github.com/flutter/flutter/issues/160100
// TODO(hellohuanlin): This is a temp workaround, but we should look into why
// framework is providing NSNotFound to the engine.
// https://github.com/flutter/flutter/issues/160100
return nil;
}
return [self.text substringWithRange:textRange];
Expand Down

0 comments on commit c4e7b73

Please sign in to comment.