Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimize EditText Spans 1/N: Fix precedence
Summary: This is part of a series of changes to minimize the number of spans committed to EditText, as a mitigation for platform issues on Samsung devices. See this [GitHub thread]( #35936 (comment)) for greater context on the platform behavior. We cache the backing EditText span on text change to later measure. To measure outside of a TextInput we need to restore any spans we removed. Spans may overlap, so base attributes should be behind everything else. The logic here for dealing with precedence is incorrect, and we should instead accomplish this by twiddling with the `SPAN_PRIORITY` bits. Changelog: [Android][Fixed] - Minimize Spans 1/N: Fix precedence Differential Revision: D44240779 fbshipit-source-id: 1a9c1fb2b6f7d7d95c14752f73ea2b6f3bdad2c3
- Loading branch information